home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / compression-faq / part1 next >
Encoding:
Internet Message Format  |  1993-06-09  |  99.7 KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!gatech!howland.reston.ans.net!usc!cs.utexas.edu!utnut!torn!nott!bnrgate!bnr.co.uk!pipex!uknet!mcsun!julienas!chorus!chorus.fr
  2. From: jloup@chorus.fr (Jean-loup Gailly)
  3. Newsgroups: comp.compression,news.answers,comp.answers
  4. Subject: comp.compression Frequently Asked Questions (part 1/3)
  5. Summary: *** READ THIS BEFORE POSTING ***
  6. Keywords: data compression, FAQ
  7. Message-ID: <compr1_9jun93@chorus.fr>
  8. Date: 9 Jun 93 13:23:27 GMT
  9. Expires: 30 Jul 93 16:17:20 GMT
  10. Sender: news@chorus.chorus.fr
  11. Reply-To: jloup@chorus.fr
  12. Followup-To: comp.compression
  13. Lines: 2399
  14. Approved: news-answers-request@MIT.Edu
  15. Supersedes: <compr1_19may93@chorus.fr>
  16. Xref: senator-bedfellow.mit.edu comp.compression:7820 news.answers:9220 comp.answers:926
  17.  
  18. Archive-name: compression-faq/part1
  19. Last-modified: June 9th, 1993
  20.  
  21.         "I've already explained this once, but repetition is
  22.         the very soul of the net."        (from alt.config)
  23.  
  24. This file is part 1 of a set of Frequently Asked Questions (FAQ) for
  25. the groups comp.compression and comp.compression.research. (If you
  26. can't find part 2 or 3, see item 53 below.)
  27.  
  28. Certain questions get asked time and again, and this is an attempt to
  29. reduce the bandwidth taken up by these posts and their associated
  30. replies.  If you have a question, *please* check this file before you
  31. post.  It may save a lot of peoples time.
  32.  
  33. If you have not already read the overall Usenet introductory material
  34. posted to "news.announce.newusers", please do.
  35.  
  36. If you don't want to see this FAQ regularly, please add the
  37. subject line to your kill file. If you have corrections or suggestions
  38. for this FAQ, send them to Jean-loup Gailly <jloup@chorus.fr>.
  39. Thank you.
  40.  
  41. Part 1 is oriented towards practical usage of compression programs.
  42. Part 2 is more intended for people who want to know how compression works.
  43. Part 3 is a long list of image compression hardware.
  44.  
  45. Main changes relative to the previous version: 
  46.  
  47. - added suffix .gz and updated gzip version (item 2)
  48. - new version of presskit (item 2)
  49. - added pointer to old 'squeeze' (item 2)
  50. - new data compression patents as usual (item 8)
  51. - added pointer to a new wavelet image compression program (item 15)
  52.  
  53.  
  54. Contents
  55. ========
  56.  
  57. General questions:
  58.  
  59. [1]  What are these newsgroups about?
  60. [2]  What is this .xxx file type?
  61.      Where can I find the corresponding compression program?
  62. [3]  What is the latest pkzip version?
  63. [4]  What is an archiver?
  64. [5]  What is the best general purpose compression program?
  65. [7]  Which books should I read?
  66. [8]  What about patents on data compression algorithms?
  67. [9]  The WEB 16:1 compressor.
  68. [11] What is the V.42bis standard?
  69. [12] I need source for the winners of the Dr Dobbs compression contest
  70. [13] I need source for arithmetic coding
  71.  
  72. Image and audio compression:
  73.  
  74. [15] Where can I get image compression programs?
  75. [16] What is the state of the art in lossless image compression?
  76. [17] What is the state of fractal compression?
  77. [18] I need specs and source for TIFF and CCITT group 4 Fax.
  78. [19] What is JPEG?
  79. [20] I am looking for source of an H.261 codec and MPEG
  80. [25] Fast DCT (Discrete Cosine Transform) algorithms
  81. [26] Are there algorithms and standards for audio compression?
  82.  
  83. Common problems:
  84.  
  85. [30] My archive is corrupted!
  86. [31] pkunzip reports a CRC error!
  87. [32] VMS zip is not compatible with pkzip!
  88. [33] I have a problem with Stacker!
  89.  
  90. Questions which do not really belong to comp.compression:
  91.  
  92. [50] What is this 'tar' compression program?
  93. [51] I need a CRC algorithm
  94. [52] What about those people who continue to ask frequently asked questions?
  95. [53] Where are FAQ lists archived?
  96. [54] I need specs for graphics formats
  97. [55] Where can I find Lenna and other images?
  98. [56] I am looking for a message digest algorithm
  99.  
  100.  
  101. Part 2: (Long) introductions to data compression techniques
  102.  
  103. [70] Introduction to data compression (long)
  104.        Huffman and Related Compression Techniques
  105.        Arithmetic Coding
  106.        Substitutional Compressors
  107.           The LZ78 family of compressors
  108.           The LZ77 family of compressors
  109.  
  110. [71] Introduction to MPEG (long)
  111.        What is MPEG?
  112.        Does it have anything to do with JPEG?
  113.        Then what's JBIG and MHEG?
  114.        What has MPEG accomplished?
  115.        So how does MPEG I work?
  116.        What about the audio compression?
  117.        So how much does it compress?
  118.        What's phase II?
  119.        When will all this be finished?
  120.        How do I join MPEG?
  121.        How do I get the documents, like the MPEG I draft?
  122.  
  123. [72] What is wavelet theory?
  124. [73] What is the theoretical compression limit?
  125. [74] Introduction to JBIG
  126. [75] Introduction to JPEG
  127.  
  128.  
  129. Part 3: (Long) list of image compression hardware
  130.  
  131. [85] Image compression hardware
  132. [99] Acknowledgments
  133.  
  134.  
  135. Search for "Subject: [#]" to get to question number # quickly. Some news
  136. readers can also take advantage of the message digest format used here.
  137.  
  138. If you know very little about data compression, read question 70 in
  139. part 2 first.
  140.  
  141. ------------------------------------------------------------------------------
  142.  
  143. Subject: [1] What are these newsgroups about?
  144.  
  145.  
  146. comp.compression is the place to discuss about data compression, both
  147. lossless (for text or data) and lossy (for images, sound, etc..).
  148. comp.compression.research was created later to provide a forum for
  149. current research on data compression and data compression algorithms.
  150. If you are not experienced in data compression, please post in
  151. comp.compression only.
  152.  
  153. If you only want to find a particular compression program for a
  154. particular operating system, please read first this FAQ and the
  155. article "How to find sources" which is regularly posted in
  156. news.answers.
  157.  
  158. If you can't resist posting such a request, other groups are probably
  159. more appropriate (comp.binaries.ibm.pc.wanted, comp.sources.wanted,
  160. comp.sys.mac.wanted, comp.archives.msdos.d, alt.graphics.pixutils).
  161. Please post your request in comp.compression only as a last resource.
  162.  
  163. If your question is about graphics only (no compression), please
  164. post to comp.graphics, *after* reading the comp.graphics FAQ (see
  165. item 54 below). For some unknown reason, many questions about
  166. graphics are incorrectly posted to comp.compression.
  167.  
  168. Please do not post any program in binary form to comp.compression.
  169. Very short sources can be posted, but long sources should be be posted
  170. to the specialized source groups, such as comp.sources.* or alt.sources.
  171.  
  172. As for any newsgroups, do not post the same message separately to
  173. comp.compression and comp.compression.research.
  174.  
  175. ------------------------------------------------------------------------------
  176.  
  177. Subject: [2] What is this .xxx file type?
  178.              Where can I find the corresponding compression program?
  179.  
  180.  
  181. All the programs mentioned in this section are lossless.
  182. For most programs, one US and one European ftp site are given.
  183. (wuarchive.wustl.edu: 128.152.135.4, garbo.uwasa.fi: 128.214.87.1)
  184. Many other sites (in particular wsmr-simtel20.army.mil: 192.88.110.2)
  185. have the same programs.
  186.  
  187. To keep this list to a reasonable size, many programs are not
  188. mentioned here. Additional information can be found in the file
  189. ftp.cso.uiuc.edu:/doc/pcnet/compression [128.174.5.61] maintained by
  190. David Lemson (lemson@uiuc.edu). When several programs can handle
  191. the same archive format, only one of them is given.
  192.  
  193. Sources for additional lossless data compressors can be found in
  194. garbo.uwasa.fi:/pc/programming/lds_10.zip and
  195. oak.oakland.edu:/pub/msdos/archivers/lz-comp2.zip.
  196. Sources in Pascal are in garbo.uwasa.fi:/pc/turbopas/preskit2.zip.
  197.  
  198. For Macintosh programs, look on sumex-aim.stanford.edu:/info-mac [36.44.0.6].
  199. For VM/CMS, look on vmd.cso.uiuc.edu:/public.477 [128.174.5.98].
  200. For Atari, look on atari.archive.umich.edu [141.211.165.41]
  201. For Amiga, look on ftp.cso.uiuc.edu:/pub/amiga [128.174.5.59]
  202.     
  203. If you don't know how to use ftp or don't have ftp access, read the
  204. article "How to find sources" which is regularly posted in news.answers.
  205.  
  206. If you can't find a program given below, it is likely that a newer
  207. version exists in the same directory. (Tell me <jloup@chorus.fr>)
  208.  
  209. A very short description of the compression algorithm is given for
  210. most programs. For the meaning of LZ77, LZ78 and LZW, see question 
  211. 70 in part 2 of the FAQ.)
  212.  
  213. ext:  produced by or read by
  214.  
  215. .arc: arc, pkarc for MSDOS. (LZW algorithm)
  216.     wuarchive.wustl.edu:/mirrors/msdos/starter/pk361.exe
  217.     garbo.uwasa.fi:/pc/arcers/pk361.exe
  218.  
  219.       arc for Unix
  220.         wuarchive.wustl.edu:/mirrors/misc/unix/arc521e.tar-z
  221.     garbo.uwasa.fi:/unix/arcers/arc.tar.Z
  222.         Contact: Howard Chu <hyc@umix.cc.umich.edu>
  223.  
  224.       arc for VMS
  225.     wuarchive.wustl.edu:/packages/compression/vax-vms/arc.exe
  226.  
  227.       arcmac for Mac
  228.     mac.archive.umich.edu:/mac/utilities/compressionapps/arcmac.hqx
  229.  
  230.       arc for Amiga
  231.     ftp.funet.fi:pub/amiga/fish/001-100/ff070/arc.lha
  232.  
  233. .arj: arj for MSDOS (LZ77 with hashing, plus secondary static Huffman
  234.           encoding on a block basis)
  235.         Contact: Robert K Jung <robjung@world.std.com>
  236.         wuarchive.wustl.edu:/mirrors/msdos/archivers/arj230.exe
  237.     garbo.uwasa.fi:/pc/arcers/arj230ng.exe
  238.     garbo.uwasa.fi:/pc/arcers/arj239b.exe
  239.  
  240.       unarj for Unix. Decompresses only. (There is no arj compressor for Unix.
  241.         Don't post a request.)
  242.         wuarchive.wustl.edu:/mirrors/misc/unix/unarj230.tar-z
  243.     garbo.uwasa.fi:/unix/arcers/unarj230.tar.Z
  244.  
  245.       unarj for Mac
  246.         mac.archive.umich.edu:/mac/util/compression/unarjmac.cpt.hqx      
  247.  
  248.       unarj for Amiga
  249.     ftp.funet.fi:pub/amiga/utilities/archivers/unarj-0.5.lha
  250.  
  251. .cpt: Compact Pro for Mac
  252.         sumex-aim.stanford.edu:/info-mac/util/compact-pro-133.hqx [36.44.0.6]
  253.  
  254.       For Unix:
  255.     sumex-aim.stanford.edu:/info-mac/unix/macutil-20b1.shar
  256.         ftp.cwi.nl:/pub/macutil2.0b3.shar.Z
  257.  
  258. .gif: gif files are images compressed with the LZW algorithm. See the
  259.       comp.graphics FAQ list for programs manipulating .gif files. See
  260.       suffix .Z below for source of LZW.
  261.  
  262. .gz, .z:  gzip (or pack, see .z below). gzip uses the same algorithm as
  263.           zip 1.9 (see below); it can also extract packed and compressed files.
  264.       For Unix, MSDOS, OS/2, VMS, Atari, Amiga, Primos:
  265.     prep.ai.mit.edu:/pub/gnu/gzip-1.1.2.tar   (or .shar or .tar.z : source)
  266.     prep.ai.mit.edu:/pub/gnu/gzip-msdos-1.1.2.exe (msdos, lha self-extract)
  267.     garbo.uwasa.fi:/unix/arcers/gzip-1.1.1.tar.Z  (source)
  268.     garbo.uwasa.fi:/pc/arcers/gzip111.exe         (msdos exe, self-extract)
  269.     oak.oakland.edu:/pub/msdos/compress/gzip111.zip (msdos exe)
  270.         ftp.spc.edu:[.macro32.savesets]gzip-1-1-1.zip   (vms source & exe)
  271.     sumex-aim.stanford.edu:/info-mac/tmit/gzip.hqx (Macintosh exe)
  272.  
  273. .ha:  ha 0.98 for MSDOS (improved PPMC - 4th order Markov modeling)
  274.     garbo.uwasa.fi:/pc/arcers/ha098.exe
  275.  
  276. .hqx: Macintosh BinHex format.. (BinHex is *not* a compression program,
  277.     it is similar to uuencode but handles multiple forks.)
  278.        for Mac:
  279.      mac.archive.umich.edu:/mac/utilities/compressionapps/binhex4.0.bin
  280.  
  281.        for Unix:
  282.          sumex-aim.stanford.edu:/info-mac/unix/mcvert-165.shar [36.44.0.6]
  283.  
  284.        for MSDOS:
  285.          wuarchive.wustl.edu:/mirrors/msdos/xbin23.zip
  286.  
  287. .lha:
  288. .lzh: lha for MSDOS (LZ77 with a trie data structure, plus secondary static
  289.           Huffman coding on a block basis)
  290.     wuarchive.wustl.edu:/mirrors/msdos/archivers/lha213.exe   (exe)
  291.     wuarchive.wustl.edu:/mirrors/msdos/archivers/lha211sr.zip (sources)
  292.     garbo.uwasa.fi:/pc/arcers/lha213.exe
  293.  
  294.       lharc for Unix. (LZ77 with hash table and binary trees, plus secondary
  295.           Huffman coding)
  296.            Warning: lharc can extract .lzh files created by
  297.            lharc 1.xx but not those created by lha. See lha for Unix below.
  298.         wuarchive.wustl.edu:/mirrors/misc/unix/lharc102a.tar-z
  299.     garbo.uwasa.fi:/unix/arcers/lharcsrc.zoo
  300.  
  301.       lharc for VMS. Same warning as for Unix lharc.
  302.     wuarchive.wustl.edu:/packages/compression/vax-vms/lharc.exe
  303.  
  304.       lha for Unix. Warning: all doc is in Japanese.
  305.     wuarchive.wustl.edu:/mirrors/misc/unix/lha101u.tar-z
  306.     garbo.uwasa.fi:/unix/arcers/lha-1.00.tar.Z
  307.           Contact: lha-admin@oki.co.jp or oki@wbg.telcom.oki.co.jp
  308.  
  309.       lha for Mac
  310.         mac.archive.umich.edu:/mac/utilities/compressionapps/maclha2.0.cpt.hqx
  311.  
  312.       lha for Amiga
  313.     ftp.funet.fi:pub/amiga/utilities/archivers/LhA_e138.run
  314.  
  315.  
  316. .pak: pak for MSDOS (LZW algorithm)
  317.         wuarchive.wustl.edu:/mirrors/msdos/archivers/pak251.exe
  318.     garbo.uwasa.fi:/pc/arcers/pak251.exe
  319.  
  320. .pit: PackIt (Macintosh)
  321.        for Mac:
  322.          sumex-aim.stanford.edu:/info-mac/util/stuffit-151.hqx  [36.44.0.6]
  323.  
  324.        for Unix:
  325.          sumex-aim.stanford.edu:/info-mac/unix/mcvert-165.shar [36.44.0.6]
  326.  
  327. .pp: PowerPacker (Amiga)
  328.     ftp.funet.fi:pub/amiga/fish/501-600/ff561/PPLib.lha
  329.  
  330. .sea: self-extracting archive (Macintosh)
  331.          Run the file to extract it. The self-extraction code can be
  332.          removed with:
  333.       mac.archive.umich.edu:/mac/utilities/compressionapps/desea1.11.cpt.hqx
  334.  
  335. .shar:  Shell archive. This is not a compression program. Use "sh foo.shar"
  336.         to extract.
  337.  
  338. .sit: Stuffit for Macintosh
  339.        for Mac:
  340.          sumex-aim.stanford.edu:/info-mac/util/stuffit-lite-30.hqx [36.44.0.6]
  341.  
  342.        for Unix:
  343.          sumex-aim.stanford.edu:/info-mac/unix/unsit-15.shar [36.44.0.6]
  344.  
  345.        for Amiga:
  346.      ftp.funet.fi:pub/amiga/utilities/archivers/unsit-1.5c2.lha
  347.  
  348.        for MSDOS:
  349.      garbo.uwasa.fi:/pc/arcers/unsit30.zip
  350.  
  351. .?q?: Squeeze for MSDOS (do not confuse with other 'squeeze' below).
  352.       Static Huffman coding.
  353.     oak.oakland.edu:/pub/msdos/starter/sqpc12a.com (squeeze)
  354.     oak.oakland.edu:/pub/msdos/starter/nusq110.com (unsqueeze)
  355.  
  356. .sqz: Squeeze for MSDOS (do not confuse with other 'squeeze' above)
  357.       LZ77 with hashing.
  358.     wuarchive.wustl.edu:/mirrors/msdos/archivers/sqz1083e.exe
  359.         garbo.uwasa.fi:/pc/arcers/sqz1083e.exe
  360.  
  361. .tar: tar is *not* a compression program. However, to be kind for you:
  362.       for MSDOS
  363.     wuarchive.wustl.edu:/mirrors/msdos/starter/tarread.exe
  364.     garbo.uwasa.fi:/pc/unix/tar4dos.zoo
  365.  
  366.       for Unix
  367.         tar (you have it already. To extract: tar xvf file.tar)
  368.  
  369.       for VMS
  370.     wuarchive.wustl.edu:/packages/compression/vax-vms/tar.exe
  371.  
  372.       for Macintosh
  373.         sumex-aim.stanford.edu:/info-mac/util/tar-30.hqx
  374.  
  375.       for Amiga:
  376.     ftp.funet.fi:pub/amiga/fish/401-500/ff445/Tar.lha
  377.  
  378. .tar.Z, .tar-z, .taz: tar + compress
  379.       For Unix:     zcat file.tar.Z | tar xvf -
  380.       with GNU tar: tar xvzf file.tar.Z
  381.       Other OS: first uncompress (see .Z below) then untar (see .tar above)
  382.  
  383. .tar.z, .tgz: tar + gzip
  384.       For Unix: gzip -cd file.tar.z | tar xvf -
  385.       with GNU tar: tar xvzf file.tar.z
  386.       Other OS: first uncompress (see .z below) then untar (see .tar above)
  387.  
  388. .z:   pack or gzip (see .gz above). pack uses static Huffman coding.
  389.       To extract, see .gz above.
  390.  
  391. .zip: pkzip 1.10 for MSDOS. (LZ77 with hashing, plus secondary static
  392.           Shannon-Fano encoding on whole file)
  393.            Contact: pkware.inc@mixcom.com
  394.          wuarchive.wustl.edu:/mirrors/msdos/zip/pkz110eu.exe.
  395.          garbo.uwasa.fi:/pc/arcers/pkz110eu.exe.
  396.            Note: pkz110eu.exe is an 'export' version without encryption.
  397.  
  398.       zip 1.1 for Unix, MSDOS, VMS, OS/2, ... (compatible with pkzip 1.10.
  399.      For corresponding unzip, see unzip 5.0p1 below).
  400.      wuarchive.wustl.edu:/mirrors/misc/unix/zip11.zip
  401.  
  402.       arcutil 2.0 for VM/CMS (unzip only, not yet compatible with pkzip 2.04)
  403.          vmd.cso.uiuc.edu:/public.477/arcutil.* [128.174.5.98].
  404.  
  405.       pkzip 2.04g for MSDOS. (LZ77 with hashing, plus secondary static
  406.            Huffman coding on a block basis)
  407.          garbo.uwasa.fi:/pc/arcers/pkz204g.exe
  408.      ftp.cica.indiana.edu:/pub/pc/starter/pkz204g.exe.
  409.  
  410.       zip 1.9p1 and unzip 5.0p1 for Unix, MSDOS, VMS, OS/2, Amiga, ...
  411.           Compatible with pkzip 2.04g (LZ77 with hashing, plus secondary static
  412.           Huffman coding on a block basis)
  413.             Contact: zip-bugs@wkuvx1.bitnet
  414.      oak.oakland.edu:/pub/misc/unix/zip19p1.zip   (source)
  415.      oak.oakland.edu:/pub/misc/unix/unz50p1.tar-z (tar.Z source)
  416.      oak.oakland.edu:/pub/msdos/zip/zip19p1x.zip (MSDOS exe)
  417.      oak.oakland.edu:/pub/msdos/zip/unz50p1.exe  (MSDOS exe)
  418.          wuarchive.wustl.edu:/mirrors/garbo.uwasa.fi/arcutil/zcrypt19.zip
  419.          (encryption source. Non US residents must get it from garbo,see below)
  420.  
  421.      garbo.uwasa.fi:/unix/arcers/zip19p1.zip     (source)
  422.      garbo.uwasa.fi:/unix/arcers/unz50p1.tar.Z   (source)
  423.      garbo.uwasa.fi:/pc/arcers/zip19p1x.zip      (MSDOS exe)
  424.      garbo.uwasa.fi:/pc/arcers/unz50p1.exe       (MSDOS exe)
  425.          ftp.luth.se:/pub/amiga/util/arc/InfoZipI.lha (amiga exe zip+unzip)
  426.          garbo.uwasa.fi:/pc/arcutil/zcrypt19.zip     (encryption source)
  427.      ftp.win.tue.nl:/pub/compression/zip/zcryp19x.zip (crypt MSDOS exe)
  428.  
  429.        for Macintosh (zip-it and unzip-201 are compatible with pkzip 2.04)
  430.      sumex-aim.stanford.edu:/info-mac/util/zip-it-111.hqx
  431.      sumex-aim.stanford.edu:/info-mac/util/unzip-201.hqx
  432.      sumex-aim.stanford.edu:/info-mac/util/mac-zip-10.hqx
  433.  
  434. .zoo: zoo 2.10 for MSDOS (algorithm copied from that of lha, see lha above)
  435.       Contact: Rahul Dhesi <dhesi@cirrus.com>
  436.      wuarchive.wustl.edu:/mirrors/msdos/zoo/zoo210.exe
  437.      garbo.uwasa.fi:/pc/arcers/zoo210.exe
  438.  
  439.       zoo 2.10 for Unix, VMS
  440.          wsmr-simtel20.army.mil:pd8:<misc.unix>zoo210.tar-z [192.88.110.2]
  441.      garbo.uwasa.fi:/unix/arcers/zoo210.tar.Z
  442.  
  443.       zoo for Mac
  444.       mac.archive.umich.edu:/mac/utilities/compressionapps/maczoo.sit.hqx
  445.  
  446.       zoo for Amiga
  447.     ftp.funet.fi:pub/amiga/utilities/archivers/Zoo-2.1.lha
  448.  
  449. .F: freeze for Unix (LZ77 with hashing, plus secondary dynamic Huffman
  450.          encoding)
  451.      wuarchive.wustl.edu:/usenet/comp.sources.misc/volume25/freeze/part0[1-2].Z
  452.      ftp.inria.fr:/system/arch-compr/freeze-2.3.4.tar.Z
  453.      Contact: Leonid A. Broukhis <leo@s514.ipmce.su>
  454.  
  455. .Y: yabba for Unix, VMS, ... (Y coding, a variant of LZ78)
  456.   wuarchive.wustl.edu:/usenet/comp.sources.unix/volume24/yabbawhap/part0[1-4].Z
  457.   ftp.inria.fr:/system/arch-compr/yabba.tar.Z
  458.   Contact: Dan Bernstein <brnstnd@nyu.edu>
  459.  
  460. .Z: compress for Unix ('the' LZW algorithm)
  461.       It is likely that your Unix system has 'compress' already. Otherwise:
  462.     wuarchive.wustl.edu:/packages/compression/compress-4.1.tar
  463.         (not in .Z format to avoid chicken and egg problem)
  464.  
  465.     compress for MSDOS
  466.     wuarchive.wustl.edu:/mirrors/msdos/compress/comp430[ds].zip
  467.     garbo.uwasa.fi:/pc/unix/comp430d.zip
  468.  
  469.     compress for Macintosh
  470.         sumex-aim.stanford.edu:/info-mac/util/maccompress-32.hqx
  471.  
  472.     compress for Amiga
  473.     ftp.funet.fi:pub/amiga/utilities/archivers/compress-4.1.lha
  474.  
  475.     compress for Vax/VMS
  476.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzcomp.exe
  477.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzdcmp.exe
  478.  
  479. ------------------------------------------------------------------------------
  480.  
  481. Subject: [3]  What is the latest PKZIP version?
  482.  
  483. The latest official version is 2.04g. Release 2.04c had serious bugs,
  484. corrected in 2.04e and 2.04g.
  485.  
  486. Be warned that there are countless bogus PKZIP 1.20, 2.0, 2.02,
  487. 3.05 and whatever scams floating around.  They usually are hacks of
  488. PKZIP 1.93A beta test version.  Some of them are trojans and / or
  489. carry computer virii.
  490.  
  491. ------------------------------------------------------------------------------
  492.  
  493. Subject: [4] What is an archiver?
  494.  
  495.  
  496. There is a distinction between archivers and other compression
  497. programs:
  498.  
  499. - an archiver takes several input files, compresses them and produces
  500.   a single archive file. Examples are arc, arj, lha, zip, zoo.
  501.  
  502. - other compression programs create one compressed file for each
  503.   input file. Examples are freeze, yabba, compress. Such programs
  504.   are often combined with tar to create compressed archives (see
  505.   question 50: "What is this tar compression program?").
  506.  
  507. ------------------------------------------------------------------------------
  508.  
  509. Subject: [5] What is the best general purpose compression program?
  510.  
  511.  
  512. The answer is: it depends. (You did not expect a definitive answer,
  513. did you?)
  514.  
  515. It depends whether you favor speed, compression ratio, a standard and
  516. widely used archive format, the number of features, etc...  Just as
  517. for text editors, personal taste plays an important role. compress has
  518. 4 options, arj 2.30 has about 130 options; different people like
  519. different programs. *Please* do not start or continue flame wars on
  520. such matters of taste.
  521.  
  522. The only objective comparisons are speed and compression ratio. Here
  523. is a short table comparing various programs on a 33Mhz Compaq 386.
  524. All programs have been run on Unix SVR4, except pkzip and arj which
  525. only run on MSDOS. (MSDOS benchmarks are available by ftp on
  526. oak.oakland.edu:/pub/msdos/info/arctst*.zip.)
  527.  
  528. *Please* do not post your own benchmarks made on your own files that
  529. nobody else can access. If you think that you must absolutely post yet
  530. another benchmark, make sure that your test files are available by
  531. anonymous ftp.
  532.  
  533. The programs compared here were chosen because they are the most
  534. popular or because they run on Unix and source is available.  For ftp
  535. information, see above. Three programs (hpack, comp-2 and ha) have
  536. been added because they achieve better compression (at the expense of
  537. speed) and one program (lzrw3-a) has been added because it favors
  538. speed at the expense of compression:
  539.  
  540. - comp-2 is in wuarchive.wustl.edu:/mirrors/msdos/ddjmag/ddj9102.zip
  541.   (inner zip file nelson.zip),
  542. - hpack is in wuarchive.wustl.edu:/mirrors/misc/unix/hpack75a.tar-z
  543.   and garbo.uwasa.fi:/unix/arcers/hpack78src.tar.Z
  544. - ha 0.98 is in garbo.uwasa.fi:/pc/arcers/ha098.zip
  545. - ftp.adelaide.edu.au:/pub/compression/lzrw3-a.c  [129.127.40.3]
  546.  
  547. The 14 files used in the comparison are from the standard Calgary
  548. Text Compression Corpus, available by ftp on fsa.cpsc.ucalgary.ca [136.159.2.1]
  549. in /pub/text.compression.corpus/text.compression.corpus.tar.Z.
  550.  
  551. The whole corpus includes 18 files, but the 4 files paper[3-6] are
  552. generally omitted in benchmarks. It contains several kinds of file
  553. (ascii, binary, image, etc...) but has a bias towards large files.
  554. You may well get different ratings on the typical mix of files that
  555. you use daily, so keep in mind that the comparisons given below are
  556. only indicative.
  557.  
  558. The programs are ordered by decreasing total compressed size. For a
  559. fair comparison between archivers and other programs, this size is
  560. only the size of the compressed data, not the archive size.
  561.  
  562. The programs were run on an idle machine, so the elapsed time
  563. is significant and can be used to compare Unix and MSDOS programs.
  564.  
  565. [Note: I did not have time to run again all benchmarks with
  566.  freeze 2.4. To be done for next revision of this FAQ.]
  567.  
  568.        size     lzrw3a   compress    lharc    yabba     pkzip    freeze 
  569. version:                   4.0       1.02      1.0       1.10     2.3.5
  570. options:                                    -m300000                    
  571.        ------    -----    ------    ------    ------    ------   ------
  572. bib    111261    49040     46528     46502     40456     41354    41515 
  573. book1  768771   416131    332056    369479    306813    350560   344793 
  574. book2  610856   274371    250759    252540    229851    232589   230861 
  575. geo    102400    84214     77777     70955     76695     76172    68626 
  576. news   377109   191291    182121    166048    168287    157326   155783 
  577. obj1    21504    12647     14048     10748     13859     10546    10453 
  578. obj2   246814   108040    128659     90848    114323     90130    85500 
  579. paper1  53161    24522     25077     21748     22453     20041    20021 
  580. paper2  82199    39479     36161     35275     32733     32867    32693 
  581. pic    513216   111000     62215     61394     65377     63805    53291 
  582. progc   39611    17919     19143     15399     17064     14164    14143 
  583. progl   71646    24358     27148     18760     23512     17255    17064 
  584. progp   49379    16801     19209     12792     16617     11877    11686 
  585. trans   93695    30292     38240     28092     31300     23135    22861 
  586.     3,141,622  1,400,105 1,259,141 1,200,580 1,159,340 1,141,821 1,109,290
  587. real             0m35s     0m59s     5m03s     2m40s              5m27s
  588. user             0m25s     0m29s     4m29s     1m46s              4m58s
  589. sys              0m05s     0m10s     0m07s     0m18s              0m08s
  590. MSDOS:                                                   1m39s
  591.                         
  592.  
  593.          zoo       lha       arj      pkzip    zip      hpack   comp-2    ha
  594.         2.10    1.0(Unix)   2.30      2.04g    1.9      0.75a            0.98
  595.          ah    2.13(MSDOS)   -jm       -ex      -6                        a2
  596.        ------    ------    ------    ------  -------   ------   ------  ------
  597. bib     40742     40740     36090     35186    34950    35619    29840   26927
  598. book1  339076    339074    318382    313566   312619   306876   237380  235733
  599. book2  228444    228442    210521    207204   206306   208486   174085  163535
  600. geo     68576     68574     69209     68698    68418    58976    64590   59356
  601. news   155086    155084    146855    144954   144395   141608   128047  123335
  602. obj1    10312     10310     10333     10307    10295    10572    10819    9799
  603. obj2    84983     84981     82052     81213    81336    80806    85465   80381
  604. paper1  19678     19676     18710     18519    18525    18607    16895   15675
  605. paper2  32098     32096     30034     29566    29674    29825    25453   23956
  606. pic     52223     52221     53578     52777    55051    51778    55461   51639
  607. progc   13943     13941     13408     13363    13238    13475    12896   11795
  608. progl   16916     16914     16408     16148    16175    16586    17354   15298
  609. progp   11509     11507     11308     11214    11182    11647    11668   10498
  610. trans   22580     22578     20046     19808    18879    20506    21023   17927
  611.     1,096,166 1,096,138 1,036,934 1,019,451 1,021,043 1,005,367 890,976 845,854
  612. real    4m07s     6m03s                        1m49s   1h22m17s  27m05s
  613. user    3m47s     4m23s                        1m43s   1h20m46s  19m27s
  614. sys     0m04s     0m08s                        0m02s      0m12s   2m03s
  615. MSDOS:            1m49s     2m41s     1m43s                              14m43s
  616.  
  617. Notes:
  618.  
  619. - the compressed data for 'zoo ah' is always two bytes longer than for
  620.   lha. This is simply because both programs are derived from the same
  621.   source (ar002, written by Haruhiko Okumura, available by ftp in
  622.   wuarchive.wustl.edu:/mirrors/msdos/archivers/ar002.zip).
  623.  
  624. - hpack 0.75a gives slightly different results on SunOS. (To be checked
  625.   with 0.78).
  626.  
  627. - the MSDOS versions are all optimized with assembler code and were run
  628.   on a RAM disk. So it is not surprising that they often go faster than
  629.   their Unix equivalent.
  630.  
  631. ------------------------------------------------------------------------------
  632.  
  633. Subject: [7] Which books should I read?
  634.  
  635.  
  636. [BWC 1989] Bell, T.C, Witten, I.H, and Cleary, J.G.  "Text Compression",
  637.     Prentice-Hall 1989. ISBN: 0-13-911991-4. Price: approx. US$40
  638.     The reference on text data compression.
  639.  
  640. [Nel 1991] Mark Nelson, "The Data Compression Book"
  641.     M&T Books, Redwood City, CA, 1991.  ISBN 1-55851-216-0.
  642.     Price $36.95 including two 5" PC-compatible disks bearing
  643.     all the source code printed in the book.
  644.     A practical introduction to data compression.
  645.     The book is targeted at a person who is comfortable reading C code but
  646.     doesn't know anything about data compression.  Its stated goal is to get
  647.     you up to the point where you are competent to program standard
  648.     compression algorithms.
  649.  
  650. [Will 1990] Williams, R.  "Adaptive Data Compression", Kluwer Books, 1990.
  651.     ISBN: 0-7923-9085-7. Price: US$75.
  652.     Reviews the field of text data compression and then addresses the
  653.     problem of compressing rapidly changing data streams.
  654.  
  655. [Stor 1988] Storer, J.A.  "Data Compression: Methods and Theory", Computer
  656.     Science Press, Rockville, MD. ISBN: 0-88175-161-8.
  657.     A survey of various compression techniques, mainly statistical
  658.     non-arithmetic compression and LZSS compression.  Includes complete Pascal
  659.     code for a series of LZ78 variants.
  660.  
  661. [ACG 1991] Advances in Speech Coding, edited by Atal, Cuperman, and Gersho,
  662.     Kluwer Academic Press, 1991.
  663.  
  664. [GG 1991] Vector Quantization and Signal Compression, by Gersho and Gray,
  665.     Kluwer Acad. Press, 1991
  666.  
  667. [CT 1991] Elements of Information Theory, by T.M.Cover and J.A.Thomas
  668.      John Wiley & Sons, 1991. ISBN 0-471-06259-6.
  669.  
  670. Review papers:
  671.  
  672. [BWC 1989] Bell, T.C, Witten, I.H, and Cleary, J.G.  "Modeling for Text
  673.     Compression", ACM Computing Surveys, Vol.21, No.4 (December 1989), p.557
  674.     A good general overview of compression techniques (as well as modeling for
  675.     text compression); the condensed version of "Text Compression".
  676.  
  677. [Lele 1987] Lelewer, D.A, and Hirschberg, D.S.  "Data Compression", ACM
  678.     Computing Surveys, Vol.19, No.3 (September 1987), p.261.
  679.     A survey of data compression techniques which concentrates on Huffman
  680.     compression and makes only passing mention of other techniques.
  681.  
  682.  
  683. ------------------------------------------------------------------------------
  684.  
  685. Subject: [8] What about patents on data compression algorithms?
  686.  
  687.  
  688. [Note: the appropriate group for discussing software patents is
  689. comp.patents (or misc.legal.computing), not comp.compression.]
  690.  
  691. All patents mentioned here are US patents, and thus probably
  692. not applicable outside the US. See item 70, "Introduction to data
  693. compression" for the meaning of LZ77, LZ78 or LZW.
  694.  
  695.  
  696. (a) Run length encoding
  697.  
  698. - Tsukiyama has two patents on run length encoding: 4,586,027 and 4,872,009
  699.   granted in 1986 and 1989 respectively. The first one covers run length
  700.   encoding in its most primitive form: a length byte followed by the
  701.   repeated byte. The second patent covers the 'invention' of limiting the
  702.   run length to 16 bytes and thus the encoding of the length on 4 bits.
  703.   Here is the start of claim 1 of patent 4,872,009, just for pleasure:
  704.  
  705.     1. A method of transforming an input data string comprising a plurality
  706.     of data bytes, said plurality including portions of a plurality of
  707.     consecutive data bytes identical to one another, wherein said data
  708.     bytes may be of a plurality of types, each type representing different
  709.     information, said method comprising the steps of: [...]
  710.  
  711. - O'Brien has patented (4,988,998) run length encoding followed by LZ77.
  712.  
  713.  
  714. (b) LZ77
  715.  
  716. - Waterworth patented (4,701,745) the algorithm now known as LZRW1,
  717.   because Ross Williams reinvented it later and posted it on
  718.   comp.compression on April 22, 1991. (See item 5 for the ftp site
  719.   with all LZRW derivatives.) The *same* algorithm has later been
  720.   patented by Gibson & Graybill (see below). The patent office failed
  721.   to recognize that the same algorithm was patented twice, even though
  722.   the wording used in the two patents is very similar.
  723.  
  724.   The Waterworth patent is now owned by Stac Inc, and used as the basis
  725.   of a lawsuit against Microsoft, concerning the compression feature
  726.   of MSDOS 6.0.
  727.  
  728. - Fiala and Greene obtained in 1990 a patent (4,906,991) on all
  729.   implementations of LZ77 using a tree data structure. Claim 1 of the
  730.   patent is much broader than the algorithms published by Fiala and
  731.   Greene in Comm.ACM, April 89. The patent covers the algorithm
  732.   published by Rodeh and Pratt in 1981 (J. of the ACM, vol 28, no 1,
  733.   pp 16-24).  It also covers the algorithm previously patented by
  734.   Eastman-Lempel-Ziv (4,464,650), and the algorithms used in lharc,
  735.   lha and zoo.
  736.  
  737. - Notenboom (from Microsoft) 4,955,066 uses three levels of
  738.   compression, starting with run length encoding.
  739.  
  740. - The Gibson & Graybill patent 5,049,881 covers the LZRW1 algorithm
  741.   previously patented by Waterworth and reinvented by Ross Williams.
  742.   Claims 4 and 12 are very general and could be interpreted as
  743.   applying to any LZ algorithm using hashing (including all variants
  744.   of LZ78):
  745.  
  746.      4. A compression method for compressing a stream of input data into
  747.      a compressed stream of output data based on a minimum number of
  748.      characters in each input data string to be compressed, said
  749.      compression method comprising the creation of a hash table, hashing
  750.      each occurrence of a string of input data and subsequently searching
  751.      for identical strings of input data and if such an identical string
  752.      of input data is located whose string size is at least equal to the
  753.      minimum compression size selected, compressing the second and all
  754.      subsequent occurrences of such identical string of data, if a string
  755.      of data is located which does not match to a previously compressed
  756.      string of data, storing such data as uncompressed data, and for each
  757.      input strings after each hash is used to find a possible previous
  758.      match location of the string, the location of the string is stored
  759.      in the hash table, thereby using the previously processed data to
  760.      act as a compression dictionary.
  761.  
  762.   Claim 12 is identical, with 'method' replaced with 'apparatus'.  Since
  763.   the 'minimal compression size' can be as small as 2, the claim could
  764.   cover any dictionary technique of the LZ family. However the text of the
  765.   patent and the other claims make clear that the patent should cover the
  766.   LZRW1 algorithm only. (In any case the Gibson & Graybill patent is likely
  767.   to be invalid because of the prior art in the Waterworth patent.)
  768.  
  769. - Phil Katz, author of pkzip, also has a patent on LZ77 (5,051,745)
  770.   but the claims only apply to sorted hash tables, and when the hash
  771.   table is substantially smaller than the window size.
  772.  
  773. - IBM patented (5,001,478) the idea of combining a history buffer (the
  774.   LZ77 technique) and a lexicon (as in LZ78).
  775.  
  776. - Stac Inc patented (5,016,009 and 5,126,739) yet another variation of LZ77
  777.   with hashing. The '009 patent is used in the lawsuit against Microsoft
  778.   (see above). Stac also has patents on LZ77 with parallel lookup in
  779.   hardware (4,841,092 and 5,003,307).
  780.  
  781. - Robert Jung, author of 'arj', has been granted patent 5,140,321
  782.   for one variation of LZ77 with hashing.  This patent covers the LZRW3-A
  783.   algorithm, also previously discovered by Ross Williams. LZRW3-A was posted
  784.   on comp.compression on July 15, 1991. The patent was filed two months later
  785.   on Sept 4, 1991. (The US patent system allows this because of the
  786.   'invention date' rule.)
  787.  
  788. - Chambers 5,155,484 is yet another variation of LZ77 with hashing.
  789.   The hash function is just the juxtaposition of two input bytes,
  790.   this is the 'invention' being patented. The hash table is named
  791.   'direct lookup table'.
  792.  
  793.  
  794. (c) LZ78
  795.  
  796. - One form of the original LZ78 algorithm was patented (4,464,650) by
  797.   its authors Lempel, Ziv, Cohn and Eastman.
  798.  
  799. - The LZW algorithm used in 'compress'is patented by IBM (4,814,746)
  800.   and Unisys (4,558,302). It is also used in the V.42bis compression
  801.   standard (see question 11 on V.42bis below) and in Postscript Level 2.
  802.   (Unisys sells the license to modem manufacturers for a onetime
  803.   $25,000 fee.) The IBM patent application was filed three weeks
  804.   before that of Unisys, but the US patent office failed to recognize
  805.   that they covered the same algorithm. (The IBM patent is more
  806.   general, but its claim 7 is exactly LZW.)
  807.  
  808. - AP coding is patented by Storer (4,876,541). (Get the yabba package
  809.   for source code, see question 2 above, file type .Y)
  810.  
  811.  
  812. (d) arithmetic coding
  813.  
  814. - IBM holds many patents on arithmetic coding (4,286,256 4,295,125
  815.   4,463,342 4,467,317 4,633,490 4,652,856 4,891,643 4,905,297 4,935,882).
  816.   It has patented in particular the Q-coder implementation of arithmetic
  817.   coding.  The arithmetic coding option of the JPEG standard requires
  818.   use of the patented algorithm.  No JPEG-compatible method is
  819.   possible without infringing the patent, because what IBM actually
  820.   claims rights to is the underlying probability model (the heart of
  821.   an arithmetic coder). (See the JPEG FAQ for details.)
  822.  
  823.   AT&T has 3 patents on arithmetic coding (4,973,961, 5,023,611, 5,025,258).
  824.  
  825.  
  826. As can be seen from the above list, some of the most popular compression
  827. programs (compress, pkzip, zoo, lha, arj) are now covered by patents.
  828. (This says nothing about the validity of these patents.)
  829.  
  830. Here are some references on data compression patents. A number of them are
  831. taken from the list prep.ai.mit.edu:/pub/lpf/patent-list.
  832.  
  833. 3,914,586
  834. Data compression method and apparatus
  835. filed 10/25/73, granted 10/21/75
  836. General Motors Corporation, Detroit MI
  837. Duane E. McIntosh, Santa Ynez CA
  838. Data compression apparatus is disclosed is operable in either a bit
  839. pair coding mode of a word coding mode depending on the degree of
  840. redundancy of the data to be encoded.
  841.  
  842. 3,976,844
  843. Data communication system for transmitting data in compressed form
  844. filed Apr. 4, 1975, granted Aug. 24, 1976
  845. inventor  Bernard K. Betz, assignee Honeywell Information Systems, Inc.
  846. [encode differences with previous line]
  847.  
  848. 4,021,782
  849. Data compaction system and apparatus
  850. inventor Hoerning
  851. filed 04/30/1975, granted 05/03/1977
  852. [A primitive form of LZ77 with implicit offsets (compare with previous record)]
  853.  
  854. 4,054,951
  855. Data expansion apparatus
  856. inventor R.D. Jackson, assignee IBM
  857. filed Jun. 30, 1976, granted Oct. 18, 1977
  858. [Covers only decompression of data compressed with a variant of LZ77.]
  859.  
  860. 4,087,788
  861. Data compression system
  862. filed 1/14/77, granted 5/2/78
  863. NCR Canada LTD - NCR Canada Ltee, Mississauga CA
  864. Brian J. Johannesson, Waterloo CA
  865. A data compression system is disclosed in which the left hand boundary
  866. of a character is developed in the form of a sequence of Freeman
  867. direction codes, the codes being stored in digital form within a
  868. processor.
  869.  
  870. 4,286,256
  871. Method and means for arithmetic coding using a reduced number of operations.
  872. granted Aug 25, 1981
  873. assignee IBM
  874.  
  875. 4,295,125
  876. A method and means for pipeline decoding of the high to low order pairwise
  877. combined digits of a decodable set of relatively shifted finite number of
  878. strings
  879. granted Oct 13, 1981
  880. assignee IBM
  881.  
  882. 4,412,306
  883. System for minimizing space requirements for storage and transmission of
  884. digital signals
  885. filed May 14, 1981, granted Oct. 25, 1983
  886. inventor  Edward W. Moll
  887.  
  888. 4,463,342
  889. A method and means for carry-over control in a high order to low order
  890. combining of digits of a decodable set of relatively shifted finite number
  891. strings.
  892. granted Jul 31, 1984
  893. assignee IBM
  894.  
  895. 4,491,934
  896. Data compression process
  897. filed May 12, 1982, granted Jan. 1, 1985
  898. inventor  Karl E. Heinz
  899.  
  900. 4,464,650
  901. Apparatus and method for compressing data signals and restoring the
  902. compressed data signals
  903. inventors Lempel, Ziv, Cohn, Eastman
  904. assignees Sperry Corporation and At&T Bell Laboratories
  905. filed 8/10/81, granted 8/7/84
  906. A compressor parses the input data stream into segments where each
  907. segment comprises a prefix and the next symbol in the data stream
  908. following the prefix.
  909.  
  910. 4,467,317
  911. High-speed arithmetic compression using using concurrent value updating.
  912. granted Aug 21, 1984
  913. assignee IBM
  914.  
  915. 4,494,108
  916. Adaptive source modeling for data file compression within bounded memory
  917. filed Jun. 5, 1984, granted Jan. 15, 1985
  918. invntors Glen G. Langdon, Jorma J. Rissanen
  919. assignee IBM
  920. order 1 Markov modeling
  921.  
  922. 4,558,302
  923. High speed data compression and decompression apparatus and method
  924. inventor Welch
  925. assignee Sperry Corporation (now Unisys)
  926. filed 6/20/83, granted 12/10/85
  927. The text for this patent can be ftped from rusmv1.rus.uni-stuttgart.de
  928. (129.69.1.12) in /info/comp.patents/US4558302.Z.
  929.  
  930. 4,560,976
  931. Data compression
  932. filed 6/5/84, granted 12/24/85
  933. Codex Corporation, Mansfield MA
  934. Steven G. Finn, Framingham, MA
  935. A stream of source characters, which occur with varying relative
  936. frequencies, is encoded into a compressed stream of codewords, each
  937. having one, two or three subwords, by ranking the source characters by
  938. their current frequency of appearance, encoding the source characters
  939. having ranks no higher than a first number as one subword codewords,
  940. source characters having ranks higher than the first number but no
  941. higher than a second number as two subword codewords, and the
  942. remaining source characters as three subword codewords.
  943.  
  944. 4,586,027
  945. Method and system for data compression and restoration
  946. inventor Tsukimaya et al.
  947. assignee Hitachi
  948. filed 08/07/84, granted 04/29/86
  949.  
  950. 4,597,057
  951. System for compressed storate of 8-bit ascii bytes using coded strings
  952. of 4-bit nibbles.
  953. inventor Snow, assignee System Development corporation.
  954. filed 12/31/1981, granted 06/24/1986.
  955. Compression using static dictionary of common words, prefixes and suffixes.
  956.  
  957. 4,612,532
  958. Data compression apparatus and method
  959. inventor Bacon, assignee Telebyte Corportion
  960. filed Jun. 19, 1984, granted Sep. 16, 1986
  961. [Uses followsets as in the pkzip 0.92 'reduce' algorithm, but the
  962. followsets are dynamically updated. This is in effect a sort of order-1
  963. Markov modeling.]
  964.  
  965. 4,622,545
  966. Method and apparatus for image compression and Manipulation
  967. inventor William D. Atkinson
  968. assignee Apple computer Inc.
  969. filed 9/30/82
  970. granted 11/11/86
  971.  
  972. 4,633,490
  973. Symmetrical adaptive data compression/decompression system.
  974. granted Dec 30, 1985
  975. assignee IBM
  976.  
  977. 4,652,856
  978. A multiplication-free multi-alphabet arithmetic code.
  979. granted Feb  4, 1986
  980. assignee IBM
  981.  
  982. 4,667,649
  983. Data receiving apparatus
  984. filed 4/18/84, granted 6/30/87
  985. inventors Kunishi et al.
  986. assignee Canon Kabushiki Kaisha, Tokyo Japan
  987. compression of Fax images.
  988.  
  989. 4,682,150
  990. Data compression method and apparatus
  991. inventors Mathes and Protheroe, 
  992. assignee NCR Corporation, Dayton OH
  993. A system and apparatus for compressing redundant and nonredundant
  994. binary data generated as part of an operation of a time and attendance
  995. terminal in which the data represents the time an employee is present
  996. during working hours.
  997.  
  998. 4,701,745
  999. Data compression system
  1000. inventor Waterworth John R
  1001. assignee Ferranti PLC GB, patent rights now acquired by Stac Inc.
  1002. filed 03/03/1986 (03/06/1985 in GB), granted 10/20/1987
  1003. Algorithm now known as LZRW1 (see above)
  1004. I claim:
  1005. 1. A data compression system comprising an input store for receiving
  1006. and storing a plurality of bytes of uncompressed data from an outside
  1007. source, and data processing means for processing successive bytes of
  1008. data from the input store;
  1009. the data processing means including circuit means operable to check
  1010. whether a sequence of successive bytes to be processed identical with
  1011. a sequence of bytes already processed, and including hash generating
  1012. means responsive to the application of a predetermined number of
  1013. bytes in sequence to derive a hash code appropriate to those bytes, a
  1014. temporary store in which the hash code may represent the address of a
  1015. storage location, and a pointer counter operable to store in the
  1016. temporary store at said address a pointer indicative of the position
  1017. in the input store of one of the predetermined number of bytes;
  1018. output means operable to apply to a transfer medium each byte of data
  1019. not forming part of such an identical sequence; and
  1020. encoding means responsive to the identification of such a sequence to
  1021. apply to the transfer medium an identification signal which identifies
  1022. both the location in the input store of the previous occurrence of the
  1023. sequence of bytes and the number of bytes contained in the sequence.
  1024.  
  1025. 4,730,348
  1026. Adaptive data compression system
  1027. inventor MacCrisken, assignee Adaptive Computer Technologies
  1028. filed Sep. 19, 1986, granted Mar. 8, 1988
  1029. [order-1 Markov modeling + Huffman coding + LZ77]
  1030.  
  1031. 4,758,899
  1032. Data compression control device
  1033. inventor Tsukiyama, assignee Hitachi
  1034. filed 11/20/1985, granted 07/19/1988
  1035. Limits compression to ensure that tape drive stays busy.
  1036.  
  1037. 4,809,350
  1038. Data compression system
  1039. filed Jan. 30, 1987, granted Feb. 28, 1989
  1040. inventor Yair Shimoni & Ron Niv
  1041. assignee Elscint Ltd., Haifa, Israel
  1042. [Image compression via variable length encoding of differences with
  1043. predicted data.]
  1044.  
  1045. 4,814,746
  1046. Data compression method
  1047. inventors Victor S. Miller, Mark N. Wegman
  1048. assignee IBM
  1049. filed 8/11/86, granted 3/21/89
  1050. A previous application was filed on 6/1/83, three weeks before the
  1051. application by Welch (4,558,302)
  1052. Communications between a Host Computing System and a number of remote
  1053. terminals is enhanced by a data compression method which modifies the
  1054. data compression method of Lempel and Ziv by addition of new character
  1055. and new string extensions to improve the compression ratio, and
  1056. deletion of a least recently used routine to limit the encoding tables
  1057. to a fixed size to significantly improve data transmission efficiency.
  1058.  
  1059. 4,853,696
  1060. Code converter for data compression/decompression
  1061. filed 4/13/87, granted 8/1/89
  1062. inventor Amar Mukherjee, Maitland FL
  1063. assignee University of Central Florida, Orlando FL
  1064. Another hardware Huffman encoder:
  1065. A code converter has a network of logic circuits connected in reverse
  1066. binary tree fashion with logic paths between leaf nodes and a common
  1067. root node.
  1068.  
  1069. 4,872,009
  1070. Method and apparatus for data compression and restoration
  1071. inventor Tsukimaya et al.
  1072. assignee Hitachi
  1073. filed 12/07/87, granted 10/03/89
  1074. This patent on run length encoding covers the 'invention' of limiting
  1075. the run length to 16 bytes and thus the encoding of the length on 4 bits.
  1076.  
  1077. 4,876,541
  1078. Stem [sic] for dynamically compressing and decompressing electronic data
  1079. filed 10/15/87, granted 10/24/89
  1080. inventor James A. Storer
  1081. assignee Data Compression Corporation
  1082. A data compression system for encoding and decoding textual data,
  1083. including an encoder for encoding the data and for a decoder for
  1084. decoding the encoded data.
  1085.  
  1086. 4,891,643
  1087. Arithmetic coding data compression/de-compression by selectively
  1088. employed, diverse arithmetic encoders and decoders.
  1089. granted Jan  2, 1990
  1090. assignee IBM
  1091.  
  1092. 4,905,297
  1093. granted Feb 27, 1990
  1094. assignee IBM
  1095. Arithmetic coding encoder and decoder system.
  1096.  
  1097. 4,906,991
  1098. Textual substitution data compression with finite length search window
  1099. filed 4/29/1988, granted 3/6/1990
  1100. inventors Fiala,E.R., and Greene,D.H.
  1101. assignee Xerox Corporation
  1102.  
  1103. 4,935,882
  1104. Probability adaptation for arithmetic coders.
  1105. granted Jun 19, 1990
  1106. assignee IBM
  1107.  
  1108. 4,941,193
  1109. Barnsley, fractal compression.
  1110.  
  1111. 4,943,869
  1112. Compression Method for Dot Image Data
  1113. filed 1988-05-04, granted 1990-07-24
  1114. assignee Fuji Photo Film Co.
  1115. Lossy and lossless image compression schemes.
  1116.  
  1117. 4,955,066
  1118. Compressing and Decompressing Text Files
  1119. filed  10/13/89, granted 09/04/90
  1120. inventor Notenboom, L.A.
  1121. assignee Microsoft
  1122. Now extended as 5,109,433
  1123. [Noted in signon screen of Word 5.5 and on the outside of the MS-DOS 5.0
  1124. Upgrade.]
  1125. A method of compressing a text file in digital form is disclosed.
  1126. A full text file having characters formed into phrases is provided by an
  1127. author.  The characters are digitally represented by bytes.  A first pass
  1128. compression is sequentially followed by a second pass compression of the
  1129. text which has previously been compressed.  A third or fourth level of
  1130. compression is serially performed on the compressed text.  For example, in
  1131. a first pass, the text is run-length compressed.  In a second pass, the
  1132. compressed text is further compressed with key phrase compression.  In a
  1133. third pass, the compressed text is further compressed with Huffman
  1134. compression.  The compressed text is stored in a text file having a Huffman
  1135. decode tree, a key phrase table, and a topic index.  The data is
  1136. decompressed in a single pass and provided one line at a time as an output.
  1137. Sequential compressing of the text minimizes the storage space required for
  1138. the file.  Decompressing of the text is performed in a single pass.  As a
  1139. complete line is decompressed, it is output rapidly, providing full text to
  1140. the user.
  1141.  
  1142. 4,973,961
  1143. Method and apparatus for carry-over control in arithmetic coding.
  1144. granted Nov 27, 1990
  1145. assignee AT&T
  1146.  
  1147. 4,988,998
  1148. Data compression system for successively applying at least two data
  1149. compression methods to an input data stream.
  1150. inventor O'Brien
  1151. assignee Storage Technology Corporation, Louisville, Colorado
  1152. filed Sep 5, 1989, granted Jan 29, 1991.
  1153. Run length encoding followed by LZ77.
  1154.  
  1155. 5,001,478
  1156. Method of Encoding Compressed Data
  1157. filed 12/28/89, granted 03/19/91
  1158. inventor Michael E. Nagy
  1159. assignee IBM
  1160. 1. A method of encoding a compressed data stream made up of a sequence of
  1161. literal references, lexicon references and history references, which
  1162. comprises the steps of:
  1163. assigning to each literal reference a literal identifier;
  1164. assigning to each history reference a history identifier;
  1165. assigning to each lexicon reference a lexicon identifier;
  1166. and emitting a data stream with said identifiers assigned to said references.
  1167. Gordon Irlam <gordoni@cs.adelaide.edu.au> says:
  1168. The invention can probably be best understood by considering the
  1169. decompressor.  It consists of a history buffer, and a lexicon buffer, both
  1170. of which are initially empty.  The history buffer contains the last n
  1171. symbols emitted.  Whenever a history buffer reference is to be output the
  1172. string so referenced is subsequently moved to the lexicon buffer for future
  1173. reference.  Thus the history buffer keeps track of strings that may be
  1174. repeated on a very short term basis, while the lexicon buffer stores items
  1175. for a longer time.  Furthermore a history reference involves specifying
  1176. both the offset and length within the history buffer, whereas a lexicon
  1177. reference simply specifies a number denoting the string.  Both buffers have
  1178. a finite size.
  1179.  
  1180. 5,003,307
  1181. Data compression apparatus with shift register search means
  1182. filed Oct. 6, 1989, granted Mar. 26, 1991
  1183. inventors George Glen A, Ivey Glen E, Whiting Douglas L
  1184. assignee Stac Inc
  1185. continuation of 4,841,092
  1186.  
  1187. 5,016,009
  1188. Data compression apparatus and method
  1189. filed 01/13/1989, granted 05/14/1991
  1190. inventors George Glen A, Ivey Glen E, Whiting Douglas L
  1191. assignee Stac Inc
  1192. LZ77 with offset hash table (extended in 5,126,739)
  1193.  
  1194. 5,023,611
  1195. Entropy encoder/decoder including a context extractor.
  1196. granted Jun 11, 1991
  1197. assignee AT&T
  1198.  
  1199. 5,025,258
  1200. Adaptive probability estimator for entropy encoder/decoder.
  1201. granted Jun 18, 1991
  1202. assignee AT&T
  1203.  
  1204. 5,049,881
  1205. Apparatus and method for very high data rate-compression incorporating
  1206. lossless data compression and expansion utilizing a hashing technique
  1207. inventors Dean K. Gibson, Mark D. Graybill
  1208. assignee Intersecting Concepts, Inc.
  1209. filed 6/18/90, granted 9/17/91
  1210. [covers lzrw1, almost identical with Waterworth 4,701,745]
  1211.  
  1212. 5,051,745
  1213. String searcher, and compressor using same
  1214. filed  8/21/90, granted 9/24/91
  1215. inventor  Phillip W. Katz (author of pkzip)
  1216. In the string search method and apparatus pointers to the string to be
  1217. searched are indexed via a hashing function and organized according to the
  1218. hashing values of the string elements pointed to. The hashing function is
  1219. also run on the string desired to be found, and the resulting hashing value
  1220. is used to access the index. If the resulting hashing value is not in the
  1221. index, it is known that the target string does not appear in the string
  1222. being searched. Otherwise the index is used to determine the pointers which
  1223. correspond to the target hashing value, these pointers pointing to likely
  1224. candidates for matching the target string. The pointers are then used to
  1225. sequentially compare each of the locations in the string being searched to
  1226. the target string, to determine whether each location contains a match to
  1227. the target string.
  1228. In the method and apparatus for compressing a stream of data symbols, a
  1229. fixed length search window, comprising a predetermined contiguous portion
  1230. of the symbol stream, is selected as the string to be searched by the
  1231. string searcher. If a string to be compressed is found in the symbol
  1232. stream, a code is output designating the location within the search window
  1233. of the matching string and the length of the matching string.
  1234.  
  1235. 5,065,447
  1236. Barnsley, fractal compression
  1237.  
  1238. 5,109,433
  1239. Compressing and decompressing text files
  1240. inventor Notenboom
  1241. assignee Microsoft
  1242. extension of 4,955,066
  1243.  
  1244. 5,126,739
  1245. Data Compression Apparatus and Method
  1246. filed Nov. 27, 1990, granted June 30, 1992.
  1247. inventor Whiting et. al
  1248. assignee Stac Inc
  1249. LZ77 with offset hash table (extension of 5,016,009)
  1250.  
  1251. 5,140,321
  1252. Data compression/decompression method and apparatus
  1253. filed 9/4/91, granted 8/18/92
  1254. inventor Robert Jung
  1255. assignee Prime Computer
  1256.  
  1257. 5,155,484
  1258. Fast data compressor with direct lookup table indexing into history buffer
  1259. filed 9/13/1991, granted 10/13/1992
  1260. inventor Chambers, IV, Lloyd L., Menlo Park, California
  1261. assignee Salient Software, Inc., Palo Alto, California (02)
  1262. Uses a 64K hash table indexed by the first two characters of
  1263. the input string. Includes several claims on the LZ77 file format
  1264. (literal or offset,length).
  1265.  
  1266. 5,179,378
  1267. file Jul. 30, 1991, granted Jan. 12, 1993
  1268. inventor Ranganathan
  1269. assignee University of South Florida
  1270. Method and apparatus for the compression and decompression of data
  1271. using Lempel-Ziv based techniques.
  1272. [This covers LZ77 hardware compression with a systolic array of
  1273. processors working in parallel.]
  1274.  
  1275. Japan 2-46275
  1276. Coding system
  1277. granted Feb 26, 1990
  1278. [Patents one form of arithmetic coding.]
  1279.  
  1280. ------------------------------------------------------------------------------
  1281.  
  1282. Subject: [9]  The WEB 16:1 compressor.
  1283.  
  1284.  
  1285. [WARNING: this topic has generated the greatest volume of news in the
  1286. history of comp.compression. Read this before posting on this subject.]
  1287.  
  1288.  
  1289. (a) What the press says
  1290.  
  1291. April 20, 1992  Byte Week Vol 4. No. 25:
  1292.  
  1293.    "In an announcement that has generated high interest - and more than a
  1294.    bit of skepticism - WEB Technologies (Smyrna, GA) says it has
  1295.    developed a utility that will compress files of greater than 64KB in
  1296.    size to about 1/16th their original length.  Furthermore, WEB says its
  1297.    DataFiles/16 program can shrink files it has already compressed."
  1298.    [...]
  1299.    "A week after our preliminary test, WEB showed us the program successfully
  1300.    compressing a file without losing any data.  But we have not been able
  1301.    to test this latest beta release ourselves."
  1302.    [...]
  1303.    "WEB, in fact, says that virtually any amount of data can be squeezed 
  1304.    to under 1024 bytes by using DataFiles/16 to compress its own output
  1305.    multiple times."
  1306.  
  1307. June 1992 Byte, Vol 17 No 6:
  1308.  
  1309.    [...] According to Earl Bradley, WEB Technologies' vice president of
  1310.    sales and marketing, the compression algorithm used by DataFiles/16
  1311.    is not subject to the laws of information theory. [...]
  1312.  
  1313.  
  1314. (b) First details, by John Wallace <buckeye@spf.trw.com>:
  1315.  
  1316. I called WEB at (404)514-8000 and they sent me some product
  1317. literature as well as chatting for a few minutes with me on the phone.
  1318. Their product is called DataFiles/16, and their claims for it are
  1319. roughly those heard on the net.
  1320.  
  1321. According to their flier:
  1322.  
  1323. "DataFiles/16 will compress all types of binary files to approximately
  1324. one-sixteenth of their original size ... regardless of the type of
  1325. file (word processing document, spreadsheet file, image file,
  1326. executable file, etc.), NO DATA WILL BE LOST by DataFiles/16."
  1327. (Their capitalizations; 16:1 compression only promised for files >64K
  1328. bytes in length.)
  1329.  
  1330. "Performed on a 386/25 machine, the program can complete a
  1331. compression/decompression cycle on one megabyte of data in less than
  1332. thirty seconds"
  1333.  
  1334. "The compressed output file created by DataFiles/16 can be used as the 
  1335. input file to subsequent executions of the program.  This feature of 
  1336. the utility is known as recursive or iterative compression, and will 
  1337. enable you to compress your data files to a tiny fraction of the 
  1338. original size.  In fact, virtually any amount of computer data can 
  1339. be compressed to under 1024 bytes using DataFiles/16 to compress its 
  1340. own output files muliple times.  Then, by repeating in reverse the 
  1341. steps taken to perform the recusive compression, all original data 
  1342. can be decompressed to its original form without the loss of a single 
  1343. bit."
  1344.  
  1345. Their flier also claims: 
  1346.  
  1347. "Constant levels of compression across ALL TYPES of FILES"
  1348. "Convenient, single floppy DATA TRANSPORTATION"
  1349.  
  1350. From my telephone conversation, I was was assured that this is an
  1351. actual compression program.  Decompression is done by using only the 
  1352. data in the compressed file; there are no hidden or extra files.
  1353.  
  1354.  
  1355. (c) More information, by Rafael Ramirez <rafael.ramirez@channel1.com>:
  1356.  
  1357.    Today (Tuesday, 28th) I got a call from Earl Bradley of Web
  1358. who now says that they have put off releasing a software version of
  1359. the algorithm because they are close to signing a major contract with
  1360. a big company to put the algorithm in silicon.  He said he could not
  1361. name the company due to non-disclosure agreements, but that they had
  1362. run extensive independent tests of their own and verified that the
  1363. algorithm works. [...]
  1364.  
  1365. He said the algorithm is so simple that he doesn't want anybody
  1366. getting their hands on it and copying it even though he said they
  1367. have filed a patent on it. [...] Mr. Bradley said the silicon version
  1368. would hold up much better to patent enforcement and be harder to copy.
  1369.  
  1370.    He claimed that the algorithm takes up about 4K of code, uses only
  1371. integer math, and the current software implementation only uses a 65K
  1372. buffer.  He said the silicon version would likely use a parallel
  1373. version and work in real-time. [...]
  1374.  
  1375.  
  1376. (d) The impossiblity proofs.
  1377.  
  1378. It is impossible for a given program to compress without loss *all*
  1379. files greater than a certain size by at least one bit. This can be
  1380. proven by a simple counting argument. (Many other proofs have been
  1381. posted on comp.compression, *please* do not post yet another one.)
  1382.  
  1383. Assume that the program can compress without loss all files of size >= N
  1384. bits.  Compress with this program all the 2^N files which have
  1385. exactly N bits.  All compressed files have at most N-1 bits, so there
  1386. are at most (2^N)-1 different compressed files [2^(N-1) files of size
  1387. N-1, 2^(N-2) of size N-2, and so on, down to 1 file of size 0]. So at
  1388. least two different input files must compress to the same output file.
  1389. Hence the compression program cannot be lossless. (Stronger results
  1390. about the number of incompressible files can be obtained, but the
  1391. proofs are a little more complex.)
  1392.  
  1393. This argument applies of course to WEB's case (take N = 64K*8 bits).
  1394. Note that no assumption is made about the compression algorithm.
  1395. The proof applies to *any* algorithm, including those using an
  1396. external dictionary, or repeated application of another algorithm,
  1397. or combination of different algorithms, or representation of the
  1398. data as formulas, etc... All schemes are subject to the counting argument.
  1399. There is no need to use information theory to provide a proof, just
  1400. basic mathematics.
  1401.  
  1402. This assumes of course that the information available to the decompressor
  1403. is only the bit sequence of the compressed data. If external information
  1404. such as a file name or a number of iterations is necessary to decompress
  1405. the data, the bits providing the extra information must be included in
  1406. the bit count of the compressed data. (Otherwise, it would be sufficient
  1407. to consider any input data as a number, use this as the iteration
  1408. count or file name, and pretend that the compressed size is zero.)
  1409.  
  1410. [See also question 73 "What is the theoretical compression limit?" in
  1411. part 2 of this FAQ.]
  1412.  
  1413.  
  1414. (e) No software version
  1415.  
  1416. Appeared on BIX, reposted by Bruce Hoult <Bruce.Hoult@actrix.gen.nz>:
  1417.  
  1418. tojerry/chaos #673, from abailey, 562 chars, Tue Jun 16 20:40:34 1992
  1419. Comment(s). 
  1420. ----------
  1421. TITLE: WEB Technology
  1422. I promised everyone a report when I finally got the poop on WEB's
  1423. 16:1 data compression. After talking back and forth for a year
  1424. and being put off for the past month by un-returned phone calls,
  1425. I finally got hold of Marc Spindler who is their sales manager.
  1426.  
  1427. _No_ software product is forth coming, period!
  1428.  
  1429. He began talking about hardware they are designing for delivery
  1430. at the end of the year. [...]
  1431.  
  1432.  
  1433. (f) Product cancelled
  1434.  
  1435. Posted by John Toebes <toebes@bnr.ca> on Aug 10th, 1992:
  1436.  
  1437. [Long story omitted, confirming the reports made above about the
  1438. original WEB claims.]
  1439.  
  1440. 10JUL92 - Called to Check Status.  Was told that testing had uncovered a
  1441.           new problem where 'four numbers in a matrix were the same
  1442.           value' and that the programmers were off attempting to code a
  1443.           preprocessor to eliminate this rare case.  I indicated that he
  1444.           had told me this story before.  He told me that the
  1445.           programmers were still working on the problem.
  1446.  
  1447. 31JUL92 - Final Call to Check Status.  Called Earl in the morning and
  1448.           was told that he still had not heard from the programmers. [...]
  1449.           Stated that if they could not resolve the problem then there would
  1450.           probably not be a product.
  1451.  
  1452. 03AUG92 - Final Call.  Earl claims that the programmers are unable to
  1453.           resolve the problem.  I asked if this meant that there would
  1454.           not be a product as a result and he said yes.
  1455.  
  1456.  
  1457. (g) Conclusion
  1458.  
  1459. The last report given above should put an end to the WEB story.
  1460.  
  1461. [Note from the FAQ maintainer: I will keep this long story in the FAQ
  1462. for a while, and will remove it when the dust has finally settled
  1463. down.]
  1464.  
  1465. ------------------------------------------------------------------------------
  1466.  
  1467. Subject: [11] What is the V.42bis standard?
  1468.  
  1469.  
  1470. A description of the V.42bis standard is given in "The V.42bis
  1471. standard for data-compressing modems," by Clark Thomborson
  1472. <cthombor@theory.lcs.mit.edu>, IEEE Micro, Oct 1992, pp. 41-53. 
  1473.  
  1474. Short introduction, by Alejo Hausner <hausner@qucis.queensu.ca>:
  1475.  
  1476. The V.42bis Compression Standard was proposed by the International
  1477. Consultative Committee on Telephony and Telegraphy (CCITT) as an
  1478. addition to the v.42 error-correction protocol for modems. Its purpose
  1479. is to increase data throughput, and uses a variant of the
  1480. Lempel-Ziv-Welch (LZW) compression method.  It is meant to be
  1481. implemented in the modem hardware, but can also be built into the
  1482. software that interfaces to an ordinary non-compressing modem.
  1483.  
  1484. V.42bis can send data compressed or not, depending on the
  1485. data.  There are some types of data that cannot be
  1486. compressed.  For example, if a file was compressed first,
  1487. and then sent through a V.42bis modem, the modem would not
  1488. likely reduce the number of bits sent.  Indeed it is likely
  1489. that the amount of data would increase somewhat.
  1490.  
  1491. To avoid this problem, the algorithm constantly monitors the
  1492. compressibility of the data, and if it finds fewer bits
  1493. would be necessary to send it uncompressed, it switches to
  1494. transparent mode.  The sender informs the receiver of this
  1495. transition through a reserved escape code.  Henceforth the
  1496. data is passed as plain bytes.
  1497.  
  1498. The choice of escape code is clever.  Initially, it is a
  1499. zero byte.  Any occurrence of the escape code is replaced,
  1500. as is customary, by two escape codes.  In order to prevent a
  1501. string of escape codes from temporarily cutting throughput
  1502. in half, the escape code is redefined by adding 51 mod 256
  1503. each time it is used.
  1504.  
  1505. While transmitting in transparent mode, the sender maintains
  1506. the LZW trees of strings, and expects the receiver to do
  1507. likewise.  If it finds an advantage in returning to
  1508. compressed mode, it will do so, first informing the receiver
  1509. by a special control code.  Thus the method allows the
  1510. hardware to adapt to the compressibility of the data.
  1511.  
  1512.  
  1513. The CCITT standards documents used to be available by ftp on
  1514. ftp.uu.net in /doc/standards/ccitt, but this service has been
  1515. discontinued. If you ftp to digital.resource.org, in directory pub/standards
  1516. there is a file that says that making the standards available in the
  1517. first place was just an experiment.
  1518.  
  1519. The documents are now on src.doc.ic.ac.uk, in directory
  1520. /computing/ccitt/standards/ccitt (they used to be in directory
  1521. doc/ccitt-standards/ccitt, so look around if you don't find them).
  1522. The v42bis standard is in /computing/ccitt/standards/ccitt/1992/v/v42bis.asc.Z.
  1523.  
  1524. A mail server for CCITT documents is available at teledoc@itu.arcom.ch.
  1525. For more information, contact Robert Shaw <shaw@itu.arcom.ch> or
  1526. Antoinette Bautista <bautista@itu.arcom.ch>. Warning by John Levine
  1527. <johnl@iecc.cambridge.ma.us>:
  1528.  
  1529.   This teledoc thing is much less than meets the eye.  What it
  1530.   actually has is one-page abstracts of some but not all CCITT
  1531.   recommendations, along with junk like lists of the national
  1532.   representatives to CCITT.  If you want the actual text of a
  1533.   recommendation, you have to send large amounts of money to
  1534.   Switzerland, same as ever. However, a closer reading of the Teledoc
  1535.   announcement shows that they say they're planning to make the actual
  1536.   text of some CCITT recommendations available on-line sometime in 1993.
  1537.  
  1538.  
  1539. See also the Standards FAQ posted to news.answers or get it by ftp in
  1540. rtfm.mit.edu:/pub/usenet/news.answers/standards-faq.
  1541.  
  1542. ------------------------------------------------------------------------------
  1543.  
  1544. Subject: [12] I need source for the winners of the Dr Dobbs compression contest
  1545.  
  1546.  
  1547. The source of the top 6 programs of the Feb 91 Dr Dobbs data compression
  1548. contest are available by ftp on
  1549.   wsmr-simtel20.army.mil in pd1:<msdos.compress>ddjcompr.zip. [192.88.110.2]
  1550.   garbo.uwasa.fi:/pc/source/ddjcompr.zip [128.214.87.1]
  1551.  
  1552. The sources are in MSDOS end-of-line format, one directory per
  1553. program.  Unix or VMS users, use "unzip -a ddjcompr" to get correct
  1554. end-of-lines (add -d to recreate the directory structure if you are
  1555. using an obsolete version of unzip such as 4.1). Three of the 6
  1556. programs are not portable and only run on MSDOS. compact and urban
  1557. work on Unix, sixpack only requires minor modifications.
  1558.  
  1559. ------------------------------------------------------------------------------
  1560.  
  1561. Subject: [13] I need source for arithmetic coding
  1562.  
  1563.  
  1564. (See question 70 for an introduction to arithmetic coding.)
  1565.  
  1566. The source for the arithmetic coder described in Chap.5 of Bell,
  1567. Cleary, and Witten's book "Text Compression" (see question 7 above)
  1568. (or, equivalently, in: Witten, Neal, and Cleary's article "Arithmetic
  1569. Coding for data Compression" from Communications of the Association
  1570. for Computing Machinery, 30 (6), pp.520-540, June, 1987) is available
  1571. via anonymous ftp from fsa.cpsc.ucalgary.ca (136.159.2.1) in directory
  1572. /pub/arithmetic.coding.  It only comes with a simple order-0 model but
  1573. it's set up so that adding your own more sophisticated one is
  1574. straightforward.
  1575.  
  1576. A low precision arithmetic coding implementation avoiding hardware
  1577. division is available on the same site (fsa.cpsc.ucalgary.ca)
  1578. in /pub/arithmetic.coding/low.precision.version/low.precision.version.shar.
  1579.  
  1580. Kris Popat <popat@image.mit.edu> has worked on "Scalar Quantization
  1581. with Arithmetic Coding."  It describes an arithmetic coding technique
  1582. which is quite general and computationally inexpensive.  The
  1583. documentation and example C code are available via anonymous ftp from
  1584. media-lab.media.mit.edu (18.85.0.2), in /pub/k-arith-code.
  1585.  
  1586. The program 'urban' in ddjcompr.zip (see item 12 above) is a high order
  1587. arithmetic coder working at the bit level. It is written by Urban Koistinen
  1588. <md85-epi@nada.kth.se>.
  1589.  
  1590. ------------------------------------------------------------------------------
  1591.  
  1592. Subject: [15] Where can I get image compression programs?
  1593.  
  1594.  
  1595. JPEG:
  1596.       Source code for most any machine:
  1597.       ftp.uu.net:/graphics/jpeg/jpegsrc.v4.tar.Z [137.39.1.9]
  1598.       nic.funet.fi:/pub/graphics/packages/jpeg/jpegsrc.v4.tar.Z [128.214.6.100]
  1599.       Contact: jpeg-info@uunet.uu.net (Independent JPEG Group)
  1600.  
  1601.       havefun.stanford.edu:pub/jpeg/JPEGv1.0.tar.Z
  1602.       Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1603.  
  1604.       xv, an image viewer which can read JPEG pictures, is available in
  1605.       export.lcs.mit.edu: contrib/xv-2.21.tar.Z [18.24.0.12]
  1606.  
  1607. MPEG:
  1608.       havefun.stanford.edu:/pub/mpeg/MPEGv1.1.tar.Z
  1609.       Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1610.  
  1611.       toe.cs.berkeley.edu:/pub/multimedia/mpeg/mpeg_play-2.0.tar.Z
  1612.       Contact: mpeg-bugs@cs.berkeley.edu
  1613.  
  1614.       nvr.com:/pub/NVR-software/Product-1.0.4.tar.Z   (192.82.231.50)
  1615.       (free demo copy of NVR's software toolkit for SPARCstations)
  1616.       Contact: Todd Brunhoff <toddb@nvr.com>
  1617.  
  1618. H.261(P*64):
  1619.       havefun.stanford.edu:pub/p64/P64v1.1.tar.Z
  1620.       Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1621.  
  1622. epic: (pyramid wavelet coder, see item 72)
  1623.       whitechapel.media.mit.edu:/pub/epic.tar.Z [18.85.0.125]
  1624.       Contact: Eero P. Simoncelli <eero@media.mit.edu>
  1625.       The "Lenna" test image is available as part of the EPIC package,
  1626.       where it is named "test_image".
  1627.  
  1628. hcompress: (wavelet impage compression)
  1629.       stsci.edu:/software/hcompress/hcompress.tar.Z
  1630.  
  1631. compfits:
  1632.       uwila.cfht.hawaii.edu:/pub/compfits/compfits.tar.Z  [128.171.80.50]
  1633.       Contact: Jim Wright <jwright@cfht.hawaii.edu>
  1634.  
  1635. fitspress:
  1636.       cfata4.harvard.edu:/pub/fitspress08.tar.Z [128.103.40.79]
  1637.  
  1638. tiff:
  1639.       For source and sample images, see question 18 below.
  1640.  
  1641. ivs: Inria videoconference system
  1642.      ftp.inria.fr:/INRIA/ivs-2.1.tar.Z
  1643.  
  1644.  
  1645. For image compression hardware, see item 85 in part 3 of this FAQ.
  1646.  
  1647. ------------------------------------------------------------------------------
  1648.  
  1649. Subject: [16] What is the state of the art in lossless image compression?
  1650.  
  1651.  
  1652. The current state-of-the-art is the JBIG algorithm.  For an
  1653. introduction to JBIG, see question 74 in part 2.
  1654.  
  1655. JBIG works best on bi-level images (like faxes) and also works well on
  1656. Gray-coded grey scale images up to about six or so bits per pixel.  You
  1657. just apply JBIG to the bit planes individually.  For more bits/pixel,
  1658. lossless JPEG provides better performance, sometimes. (For JPEG, see
  1659. question 19 below.)
  1660.  
  1661. You can find a description of JBIG in ISO/IEC CD 11544, contained in
  1662. document ISO/IEC JTC1/SC2/N2285.  The only way to get it is to ask
  1663. your National Standards Body for a copy. In the USA, call ANSI at
  1664. (212) 642-4900.
  1665.  
  1666. ------------------------------------------------------------------------------
  1667.  
  1668. Subject: [17] What is the state of fractal compression?
  1669.  
  1670.  
  1671. from Tal Kubo <kubo@zariski.harvard.edu>:
  1672.  
  1673. According to Barnsley's book 'Fractals Everywhere', this method is
  1674. based on a measure of deviation between a given image and its
  1675. approximation by an IFS code.  The Collage Theorem states that there is
  1676. a convergent process to minimize this deviation.  Unfortunately,
  1677. according to an article Barnsley wrote for BYTE a few years ago, this
  1678. convergence was rather slow, about 100 hours on a Cray, unless assisted by
  1679. a person.
  1680.  
  1681. Barnsley et al are not divulging any technical information beyond the
  1682. meager bit in 'Fractals Everywhere'.  The book explains the idea of IFS
  1683. codes at length, but is vague about the application of the Collage theorem
  1684. to specific compression problems.
  1685.  
  1686. There is reason to believe that Barnsley's company has
  1687. *no algorithm* which takes a given reasonable image and achieves
  1688. the compression ratios initially claimed for their fractal methods.
  1689. The 1000-to-1 compression advertised was achieved only for a 'rigged'
  1690. class of images, with human assistance. The best unaided
  1691. performance I've heard of is good lossy compression of about 80-1.
  1692.  
  1693. Steve Tate <srt@duke.cs.duke.edu> confirms:
  1694.  
  1695. Compression ratios (unzoomed) seem to range from 20:1 to 60:1...  The
  1696. quality is considerably worse than wavelets or JPEG on most of the
  1697. non-contrived images I have seen.
  1698.  
  1699. But Yuval Fisher <fisher@inls1.ucsd.edu> disagrees:
  1700.  
  1701. Their performance has improved dramatically beyond what they were
  1702. talking about in BYTE a few years ago.  Human assistance to the
  1703. compression is no longer needed and the compression time is
  1704. reasonable, although the more time and compute power you throw at the
  1705. compression, the smaller the resulting file for the same level of
  1706. quality.
  1707.  
  1708. Geoffrey A Stephenson <ketlux@ketlux.demon.co.uk> adds:
  1709.  
  1710. Iterated systems are shipping a general purpose compressor at about
  1711. 300 Pounds in the UK that claims "640x480 24 bit colour compression of
  1712. about 1 min at 922k -> 10k on a 486/50 software only, decomp. to 8
  1713. bits in 3 secs, etc." At a recent multimedia conference in London they
  1714. handed out free demo disks that show the decomp. in action. The
  1715. package runs under both DOS anf WIN (DLLs provided for use in
  1716. applications). They also sell a board to speed up compression and
  1717. offer versions supporting full motion video (but not apparently at all
  1718. SVGA sizes like the static picture version). I have not yet got my
  1719. hands on a full version to test different types of pictures, but
  1720. friends have a and claim it looks good.
  1721.  
  1722.  
  1723. Programs:
  1724.  
  1725. A fractal image compression program is available by ftp in
  1726. lyapunov.ucsd.edu:/pub/young-fractal/unifs10.zip. (Unix users, See
  1727. item 2 above for unzip on Unix.) Note the file size before you ftp it:
  1728. 1.2 MB. The package contains source for compression and decompression,
  1729. source for X-windows decompression, MSDOS executables and images.
  1730. A newer version of the program is in yuvpak20.zip.
  1731.  
  1732. A fractal image decompression program (note: decompression only) is
  1733. available in /pub/inls-ucsd/fractal-2.0.tar on on the same ftp site
  1734. (lyapunov.ucsd.edu). Note the file size before you ftp it: 1.3 MB.
  1735. This file also contains a paper by Yuval Fisher (see reference below),
  1736. and some executables and sample images. Reading this paper is required
  1737. to understand how the Young compression programs (see above) works.
  1738.  
  1739.  
  1740. References:
  1741.   A. Jacquin, 'Fractal image coding based on a theory of iterated
  1742.     contractive image transformations', Visual Comm. and Image
  1743.     Processing, vol SPIE-1360, 1990. (The best paper that explains
  1744.     the concept in a simple way.)
  1745.  
  1746.   A. Jacquin, "A Fractal Theory of Iterated Markov Operators with
  1747.     Applications to Digital Image Coding", PhD Thesis, Georgia Tech, 1989.
  1748.   It can be obtained from university microfilms for $35, phone 1-800-521-0600.
  1749.  
  1750.   M. Barnsley, L. Anson, "Graphics Compression Technology, SunWorld,
  1751.     October 1991, pp. 42-52.
  1752.   M.F. Barnsley, A. Jacquin, F. Malassenet, L. Reuter & A.D. Sloan,
  1753.     'Harnessing chaos for image synthesis', Computer Graphics,
  1754.     vol 22 no 4 pp 131-140, 1988.
  1755.   M.F. Barnsley, A.E. Jacquin, 'Application of recurrent iterated
  1756.     function systems to images', Visual Comm. and Image Processing,
  1757.     vol SPIE-1001, 1988.
  1758.   A. Jacquin, "Image Coding Based on a Fractal Theory of Iterated Contractive
  1759.     Image Transformations" p.18, January 1992 (Vol 1 Issue 1) of IEEE Trans
  1760.     on Image Processing.
  1761.   A.E. Jacquin, 'A novel fractal block-coding technique for digital
  1762.     images', Proc. ICASSP 1990.
  1763.   G.E. Oien, S. Lepsoy & T.A. Ramstad, 'An inner product space
  1764.     approach to image coding by contractive transformations',
  1765.     Proc. ICASSP 1991, pp 2773-2776.
  1766.   D.S. Mazel, Fractal Modeling of Time-Series Data, PhD Thesis,
  1767.     Georgia Tech, 1991.    (One dimensional, not pictures)
  1768.   S. A. Hollatz, "Digital image compression with two-dimensional affine
  1769.     fractal interpolation functions", Department of Mathematics and
  1770.     Statistics, University of Minnesota-Duluth, Technical Report 91-2.
  1771.     (a nuts-and-bolts how-to-do-it paper on the technique)
  1772.   Stark, J., "Iterated function systems as neural networks",
  1773.     Neural Networks, Vol 4, pp 679-690, Pergamon Press, 1991.
  1774.   Monro D M and Dudbridge F, "Fractal block coding of images",
  1775.     Electronics Letters 28(11):1053-1054 (1992)
  1776.   Beaumont J M, "Image data compression using fractal techniques",
  1777.     British Telecom Technological Journal 9(4):93-108 (1991)
  1778.   Fisher Y, "Fractal image compression", Siggraph 92
  1779.   Graf S, "Barnsley's Scheme for the Fractal Encoding of Images",
  1780.     Journal Of Complexity, V8, 72-78 (1992).
  1781.  
  1782. Books:
  1783.     The Fractal Transform,
  1784.     Michael F. Barnsley and Louisa F. Anson
  1785.     ISBN 0-86720-218-1, ca. 250 pp, $49.95
  1786.  
  1787.     Fractal Image Compression
  1788.     Michael F. Barnsley and Lyman P. Hurd
  1789.     ISBN 0-86720-457-5, ca. 250 pp., $49.95
  1790.     Copies can be ordered directly from the publisher by sending a message
  1791.     to kpeters@math.harvard.edu with name, address and a Mastercard or
  1792.     Visa card number with expiration date.
  1793.  
  1794. Barnsley's company is:
  1795.  
  1796. Iterated Systems, Inc.
  1797. 5550A Peachtree Parkway, Suite 650
  1798. Norcross, GA  30092
  1799. tel: 404-840-0310 or 1-800-4FRACTL
  1800. fax: 404-840-0806
  1801.  
  1802. ------------------------------------------------------------------------------
  1803.  
  1804. Subject: [18] I need specs and source for TIFF and CCITT group 4 Fax
  1805.  
  1806.  
  1807. Specs for Group 3 and 4 image coding (group 3 is very similar to group 4)
  1808. are in CCITT (1988) volume VII fascicle VII.3. They are recommendations
  1809. T.4 and T.6 respectively. There is also an updated spec contained in 1992
  1810. recommendations T.1 to T.6.
  1811.  
  1812. CCITT specs are available by anonymous ftp (see above answer on
  1813. V.42bis).  The T.4 and T.6 specs are in the directory
  1814. /computing/ccitt/standards/ccitt/1988/ascii, files 7_3_01.txt.Z and
  1815. 7_3_02.txt.Z respectively.
  1816.  
  1817. The following paper covers T.4, T.6 and JBIG:
  1818.  
  1819.   "Review of standards for electronic imaging for facsimile systems"
  1820.   in Journal of Electronic Imaging, Vol. 1, No. 1, pp. 5-21, January 1992.
  1821.  
  1822.  
  1823. Source code can be obtained as part of a TIFF toolkit - TIFF image
  1824. compression techniques for binary images include CCITT T.4 and T.6:
  1825.  
  1826.     sgi.com:/graphics/tiff/v3.2.tar.Z    [192.48.153.1]
  1827.     Contact: sam@sgi.com
  1828.  
  1829. There is also a companion compressed tar file (v3.0pics.tar.Z) that
  1830. has sample TIFF image files. A draft of TIFF 6.0 is in TIFF6.ps.Z.
  1831. Concerning JPEG compression in TIFF 6.0, Tom Lane <tgl+@cs.cmu.edu> adds:
  1832.  
  1833.   The TIFF document won't do you much good unless you also have the official
  1834.   JPEG standard.  That, you have to buy from ANSI or your national ISO member
  1835.   organization (DIN over there, I suppose).
  1836.  
  1837.   Worse, the TIFF 6.0 spec has a number of serious problems in its JPEG
  1838.   features.  A clarification note will probably be needed to ensure that TIFF
  1839.   JPEG files are compatible across different implementations.  I can't in good
  1840.   faith recommend that anyone use TIFF-JPEG until these problems are resolved.
  1841.  
  1842.  
  1843. Software for reading and writing CCITT Group 3 and 4 images is
  1844. also available in directory merry.cs.monash.edu.au:/pub/alanf/TIFF_FAX
  1845. (130.194.67.101). Contact: Alan Finlay <alanf@bruce.cs.monash.edu.au>.
  1846.  
  1847.  
  1848. See also question 54 below.
  1849.  
  1850. ------------------------------------------------------------------------------
  1851.  
  1852. Subject: [19] What is JPEG?
  1853.  
  1854.  
  1855. JPEG (pronounced "jay-peg") is a standardized image compression mechanism.
  1856. JPEG stands for Joint Photographic Experts Group, the original name of the
  1857. committee that wrote the standard.  JPEG is designed for compressing either
  1858. full-color or gray-scale digital images of "natural", real-world scenes.
  1859. It does not work so well on non-realistic images, such as cartoons or line
  1860. drawings.
  1861.  
  1862. JPEG does not handle black-and-white (1-bit-per-pixel) images, nor does it
  1863. handle motion picture compression.  Standards for compressing those types
  1864. of images are being worked on by other committees, named JBIG and MPEG
  1865. respectively.
  1866.  
  1867. Regular JPEG is "lossy", meaning that the image you get out of decompression
  1868. isn't quite identical to what you originally put in.  The algorithm achieves
  1869. much of its compression by exploiting known limitations of the human eye,
  1870. notably the fact that small color details aren't perceived as well as small
  1871. details of light-and-dark.  Thus, JPEG is intended for compressing images that
  1872. will be looked at by humans.  If you plan to machine-analyze your images, the
  1873. small errors introduced by JPEG may be a problem for you, even if they are
  1874. invisible to the eye.  The JPEG standard includes a separate lossless mode,
  1875. but it is not widely used and does not give nearly as much compression as the
  1876. lossy mode.
  1877.  
  1878. Question 75 "Introduction to JPEG" (in part 2 of this FAQ) gives an overview
  1879. of how JPEG works and provides references for further reading.  Also see the
  1880. JPEG FAQ article, which covers JPEG software and usage hints.  The JPEG FAQ is
  1881. posted regularly in news.answers by Tom Lane <tgl+@cs.cmu.edu>.  (See question
  1882. 53 "Where are FAQ lists archived" if this posting has expired at your site.)
  1883.  
  1884. For JPEG hardware, see item 85 in part 3 of this FAQ.
  1885.  
  1886. ------------------------------------------------------------------------------
  1887.  
  1888. Subject: [20] I am looking for source of an H.261 codec and MPEG
  1889.  
  1890.  
  1891. The H.261 spec is available on src.doc.ic.ac.uk in
  1892. /computing/ccitt/standards/ccitt/1992/h/h261.doc.Z (or h261.rtf.Z).
  1893.  
  1894.  
  1895. For H.261 hardware, see item 85 in part 3 of this FAQ.
  1896.  
  1897. from Thierry TURLETTI <turletti@sophia.inria.fr>:
  1898.  
  1899. We have implemented a software version of H.261 codec. 
  1900. It runs on top of UNIX and X-Windows. The coder uses the simple video capture
  1901. board "VideoPix" provided by SUN for the SparcStation. The output is directed
  1902. towards a standard TCP connection, instead of the leased lines or switched 
  1903. circuits for which regular H.261 codecs are designed. This enable us to test
  1904. video conferences over regular internet connections.
  1905. We have to polish it a bit, but the first release is now available by anonymous
  1906. ftp from avahi.inria.fr, in "/pub/h261.tar.Z".
  1907.  
  1908.  
  1909. from Andy Hung <achung@cs.stanford.edu>:
  1910.  
  1911. Public domain UNIX C source code to do both image and image sequence
  1912. compression and decompression is available by anonymous ftp:
  1913.  
  1914. MPEG-I            havefun.stanford.edu:pub/mpeg/MPEGv1.1.tar.Z
  1915. CCITT H.261(P*64)    havefun.stanford.edu:pub/p64/P64v1.1.tar.Z
  1916. JPEG            havefun.stanford.edu:pub/jpeg/JPEGv1.1.tar.Z
  1917.  
  1918. These codecs operate on raw raster scanned images.
  1919.  
  1920. A software program to display raw raster-scanned YUV images and image
  1921. sequences on X grayscale or color monitors is provided by a program in
  1922. the anonymous ftp directory havefun.stanford.edu pub/cv/CVv1.1.tar.Z.
  1923. If you are using the codecs above, we recommend that you ftp this file
  1924. over as well.
  1925.  
  1926. The source code has been compiled on DEC and SUN workstations.
  1927. Caution: the P64 codec has not been tested compliant (any available
  1928. p64 video streams would be much appreciated - please let us know at
  1929. achung@cs.stanford.edu).  The other codecs have been tested with
  1930. streams from other encoders.
  1931.  
  1932. We also have some IPB MPEG-I video coded streams in pub/mpeg/*.mpg;
  1933. and P64 video streams in pub/p64/*.p64 that we have generated using
  1934. our codecs.
  1935.  
  1936. For a more complete description see the file
  1937. havefun.stanford.edu:pub/README.
  1938.  
  1939. ------------------------------------------------------------------------------
  1940.  
  1941. Subject: [25] Fast DCT (Discrete Cosine Transform) algorithms
  1942.  
  1943.  
  1944. Many image compression methods, including the JPEG, MPEG, and H.261 standards,
  1945. are based on the discrete cosine transform.  A good overall introduction to
  1946. DCT is the book "Discrete Cosine Transform---Algorithms, Advantages,
  1947. Applications" by K.R. Rao and P. Yip (Academic Press, London, 1990).
  1948. This has an extensive, though already dated, bibliography.
  1949.  
  1950. Here are some newer references provided by Tom Lane <tgl+@cs.cmu.edu>.
  1951. Most of these are in IEEE journals or conference proceedings, notably
  1952. ICASSP = IEEE Intl. Conf. on Acoustics, Speech, and Signal Processing.
  1953. ICCAS = IEEE Intl. Conf. on Circuits and Systems.
  1954. DCC = Data Compression Conference.
  1955.  
  1956. Polynomial Transform Computation of the 2-D DCT, Duhamel & Guillemot,
  1957.   ICASSP '90 p. 1515.
  1958. A Forward-Mapping Realization of the Inverse DCT, McMillan & Westover,
  1959.   DCC '92 p. 219.
  1960. A Fast Algorithm for 2-D DCT, Cho, Yun & Lee, ICASSP '91 p. 2197.
  1961. Fast Algorithm and Implementation of 2-D DCT, Cho & Lee, Tr. CAS v38 p. 297.
  1962. A DCT Chip based on a new Structured and Computationally Efficient DCT
  1963.   Algorithm, Duhamel, Guillemot & Carlach, ICCAS '90 p. 77.
  1964. Trade-offs in the Computation of Mono- and Multi-dimensional DCTs,
  1965.   Vetterli, Duhamel & Guillemot, ICASSP '89 p. 999.
  1966. Practical Fast 1-D DCT Algorithms with 11 Multiplications,
  1967.   Loeffler, Ligtenberg & Moschytz, ICASSP '89 p. 988.
  1968. New Scaled DCT Algorithms for Fused Multiply/Add Architectures,
  1969.   Linzer & Feig, ICASSP '91 p. 2201.
  1970. Fast Algorithms for the 2-D Discrete Cosine Transform, Kamangar & Rao,
  1971.   IEEE Tr. Computers, v C-31 p. 899.
  1972. Fast 2-D Discrete Cosine Transform, Vetterli, ICASSP '85 p. 1538.
  1973. A Two-Dimensional Fast Cosine Transform, Haque, Tr. ASSP v ASSP-33 p. 1532.
  1974. Real-Time Parallel and Fully Pipelined 2-D DCT Lattice Structures with
  1975.   Application to HDTV Systems, Chiu & Liu, Tr. CAS for Video Tech, v 2 p. 25.
  1976.  
  1977.  
  1978. The free JPEG code (jpegsrc.v4.tar.Z) has one of the fastest implementations
  1979. of the DCT code.  It's all in the files jfwddct.c and jrevdct.c (which do
  1980. the dct and idct, respectively). See item 15 for ftp locations.
  1981.  
  1982. ------------------------------------------------------------------------------
  1983.  
  1984. Subject: [26] Are there algorithms and standards for audio compression?
  1985.  
  1986.  
  1987. Yes. See the introduction to MPEG given in part 2 of this FAQ.
  1988.  
  1989. A lossless compressor for 8bit and 16bit audio data (.au) is available by
  1990. anonymous ftp at svr-ftp.eng.cam.ac.uk:/pub/misc/shorten-1.03.shar. It works
  1991. by using Huffman coding of prediction residuals.  Compression is generally
  1992. better than that obtained by applying general purpose compression utilities
  1993. to audio files.
  1994.  
  1995. Copied from the comp.dsp FAQ posted by guido@cwi.nl (Guido van Rossum):
  1996.  
  1997.   Strange though it seems, audio data is remarkably hard to compress
  1998.   effectively.  For 8-bit data, a Huffman encoding of the deltas between
  1999.   successive samples is relatively successful.  For 16-bit data,
  2000.   companies like Sony and Philips have spent millions to develop
  2001.   proprietary schemes.
  2002.  
  2003.   Public standards for voice compression are slowly gaining popularity,
  2004.   e.g. CCITT G.721 and G.723 (ADPCM at 32 and 24 kbits/sec).  (ADPCM ==
  2005.   Adaptive Delta Pulse Code Modulation.)  Free source code for a *fast*
  2006.   32 kbits/sec ADPCM (lossy) algorithm is available by ftp from ftp.cwi.nl
  2007.   as /pub/adpcm.shar.  (** NOTE: if you are using v1.0, you should get
  2008.   v1.1, released 17-Dec-1992, which fixes a serious bug -- the quality
  2009.   of v1.1 is claimed to be better than uLAW **)
  2010.  
  2011.   (Note that U-LAW and silence detection can also be considered
  2012.   compression schemes.)
  2013.  
  2014. A note on u-law from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  2015.  
  2016.   u-law (more precisely (greek mu)-law or 5-law if you have an 8-bit
  2017.   ISO terminal) is more an encoding then a compression method,
  2018.   although a 12 to 8 bit reduction is normally part of the encoding.
  2019.   The official definition is CCITT recommendation G.711. If you want
  2020.   to know how to get CCITT documents, check the Standards FAQ
  2021.   posted to news.answers or get the file standards-faq by ftp in
  2022.   directory rtfm.mit.edu:/pub/usenet/news.answers.
  2023.  
  2024.  
  2025. See also the comp.dsp FAQ for more information on:
  2026.  
  2027. - The U.S. DoD's Federal-Standard-1016 based 4800 bps code excited linear
  2028.   prediction voice coder version 3.2 (CELP 3.2)
  2029. - The U.S. DoD's Federal-Standard-1015/NATO-STANAG-4198 based 2400 bps
  2030.   linear prediction coder version 53 (LPC-10e v53)
  2031. - Realtime DSP code and hardware for FS-1015 and FS-1016
  2032.  
  2033. You can find the comp.dsp FAQ in comp.dsp or news.answers with subject:
  2034. "FAQ: Audio File Formats" or by ftp on rtfm.mit.edu
  2035. in /pub/usenet/news.answers/audio-fmts/part1.
  2036.  
  2037.  
  2038. CELP C code for Sun SPARCs is available for anonymous ftp at
  2039. furmint.nectar.cs.cmu.edu, in directory celp.audio.compression.
  2040.  
  2041.  
  2042. Recommended reading:
  2043.   Digital Coding of Waveforms: Principles and Applications to Speech and
  2044.   Video.  N. S. Jayant and Peter Noll.  Prentice-Hall, 1984, ISBN
  2045.   0-13-211913-7.
  2046.  
  2047.  
  2048. from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  2049.  
  2050.   One highest quality sound compression format is called ASPEC and has
  2051.   been developped by a team at the Frauenhofer Institut in Erlangen (Germany)
  2052.   and others.
  2053.  
  2054.   ASPEC produces CD like quality and offers several bitrates, one is
  2055.   128 kbit/s. It is a lossy algorithm that throws away frequencys that
  2056.   aren't registered in the human cochlea in addition to sophisticated
  2057.   entropy coding. The 64 kbit/s ASPEC variant might soon bring hifi
  2058.   quality ISDN phone connections. It has been implemented on standard DSPs.
  2059.  
  2060.   The Layer 3 MPEG audio compression standard now contains what is officially
  2061.   called the best parts of the ASPEC and MUSICAM algorithms. A reference is:
  2062.  
  2063.     K.Brandenburg, G.Stoll, Y.F.Dehery, J.D.Johnston, L.v.d.Kerkhof,
  2064.     E.F.Schroeder: "The ISO/MPEG-Audio Codec: A Generic Standard for Coding
  2065.     of High Quality Digital Audio",
  2066.     92nd. AES-convention, Vienna 1992, preprint 3336
  2067.  
  2068.  
  2069. from Jutta Degener <jutta@cs.tu-berlin.de> and Carsten Bormann
  2070. <cabo@cs.tu-berlin.de>:
  2071.  
  2072.   GSM 06.10 13 kbit/s RPE/LTP speech compression available
  2073.   --------------------------------------------------------
  2074.  
  2075.   The Communications and Operating Systems Research Group (KBS) at the
  2076.   Technische Universitaet Berlin is currently working on a set of
  2077.   UNIX-based tools for computer-mediated telecooperation that will be
  2078.   made freely available.
  2079.  
  2080.   As part of this effort we are publishing an implementation of the
  2081.   European GSM 06.10 provisional standard for full-rate speech
  2082.   transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
  2083.   excitation/long term prediction) coding at 13 kbit/s.
  2084.  
  2085.   GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
  2086.   rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
  2087.   with typical UNIX applications, our implementation turns frames of 160
  2088.   16-bit linear samples into 33-byte frames (1650 Bytes/s).
  2089.   The quality of the algorithm is good enough for reliable speaker
  2090.   recognition; even music often survives transcoding in recognizable 
  2091.   form (given the bandwidth limitations of 8 kHz sampling rate).
  2092.  
  2093.   Version 1.0 of the implementation is available per anonymous ftp from
  2094.   tub.cs.tu-berlin.de as /pub/tubmik/gsm-1.0.tar.Z.  Questions and bug
  2095.   reports should be directed to toast@tub.cs.tu-berlin.de.  
  2096.   Note that the distribution is not available via E-mail (please use one
  2097.   of the ftp-via-E-mail servers).
  2098.  
  2099.  
  2100. from Bob Kimball <rkimball@qualcomm.com>:
  2101.  
  2102.   I work for Qualcomm Inc. and we are designing a digital cellular telephone
  2103.   system.  Our phone uses our variable rate vocoder (QCELP) which is designed
  2104.   for speach and compresses 64Kb/s speach to 8Kb/s through 1Kb/s with 8Kb/s
  2105.   being full rate and 1Kb/s for 1/8 rate speach.  It works great for speach.
  2106.  
  2107.   The QCELP process is documented in our Common Air Interface (CAI) which is
  2108.   available for anonymous ftp from lorien.qualcomm.com in /pub/cdma
  2109.   each chapter is a postscript file.  The vocoder is described in appendix A.
  2110.   The whole document is quite large.  This is the document which is currently
  2111.   going through the TIA standard committee so it is not a final version.  The
  2112.   appendix on the vocoder should be almost identical to the final version...
  2113.   whenever that comes out.
  2114.  
  2115.  
  2116. from Nicola Ferioli <ser1509@cdc835.cdc.polimi.it>:
  2117.  
  2118.   On wsmr-simtel20.army.mil, pd1:<msdos.sound>
  2119.   VOCPAK10.ZIP    Lossless 8-bit sound file compressor
  2120.  
  2121.   VOCPACK is a compressor/decompressor for 8-bit digital sound using a
  2122.   lossless algorithm; it is useful to save disk space without degrading
  2123.   sound quality.  It can compress signed and unsigned data, sampled at any
  2124.   rate, mono or stereo.  Since the method used is not lossy, it isn't
  2125.   necessary to strip file headers before compressing.
  2126.  
  2127.   VOCPACK was developed for use with .VOC (SoundBlaster) and .WAV (Windows)
  2128.   files, but any 8-bit sound can be compressed since the program takes no
  2129.   assumptions about the file structure.
  2130.  
  2131.   The typical compression ratio obtained goes from 0,8 for files sampled at
  2132.   11 KHz to 0,4 for 44 Khz files.  The best results are obtained with 44 KHz
  2133.   sounds (mono or stereo): general-purpose archivers create files that can be
  2134.   twice longer than the output of VOCPACK.  You can obtain smaller values
  2135.   using lossy compressors but if your goal is to keep the sound quality
  2136.   unaltered you should use a lossless program like VOCPACK.
  2137.  
  2138. ------------------------------------------------------------------------------
  2139.  
  2140. Subject: [30] My archive is corrupted!
  2141.  
  2142.  
  2143. The two most common reasons for this are
  2144.  
  2145. (1) failing to use the magic word "tenex" (when connected to SIMTEL20 and
  2146.     other TOPS20 systems) or "binary" (when connected to UNIX systems) when
  2147.     transferring the file from an ftp site to your host machine.  The
  2148.     reasons for this are technical and boring.  A synonym for "tenex" is
  2149.     "type L 8", in case your ftp doesn't know what "tenex" means.
  2150.  
  2151. (2) failing to use an eight-bit binary transfer protocol when transferring
  2152.     the file from the host to your PC.  Make sure to set the transfer type
  2153.     to "binary" on both your host machine and your PC.
  2154.  
  2155. ------------------------------------------------------------------------------
  2156.  
  2157. Subject: [31] pkunzip reports a CRC error!
  2158.  
  2159.  
  2160. The portable zip 1.1 contains many workarounds for undocumented restrictions
  2161. in pkunzip. Compatibility is ensured for pkunzip 1.10 only. All previous
  2162. versions (pkunzip 1.0x) have too many bugs and cannot be supported. This
  2163. includes Borland unzip.
  2164.  
  2165. So if your pkunzip reports a CRC error, check that you are not using
  2166. an obsolete version. Get either pkzip 2.04g or unzip 5.0p1 (see question
  2167. 2 above for ftp sites). To generate zip files compatible with pkunzip 1.10,
  2168. use zip 1.1 (see item 2 above for ftp site).
  2169.  
  2170. ------------------------------------------------------------------------------
  2171.  
  2172. Subject: [32] VMS zip is not compatible with pkzip!
  2173.  
  2174.  
  2175. The problem is most likely in the file transfer program.
  2176.  
  2177. Many use kermit to transfer zipped files between PC and VMS VAX.  The
  2178. following VMS kermit settings make VMS-ZIP compatible with PKZIP:
  2179.  
  2180.                                              VMS kermit        PC kermit
  2181.                                            ---------------   --------------
  2182.  
  2183. Uploading PKZIPped file to be UNZIPped:    set fi ty fixed    set fi ty bi
  2184. Downloading ZIPped file to be PKUNZIPped:  set fi ty block    set fi ty bi
  2185.  
  2186. If you are not using kermit, transfer a file created by pkzip on MSDOS
  2187. to VMS, transfer it back to your PC and check that pkunzip can extract it.
  2188.  
  2189. ------------------------------------------------------------------------------
  2190.  
  2191. Subject: [33] I have a problem with Stacker!
  2192.  
  2193.  
  2194. The newsgroup comp.compression is *not* the appropriate place to
  2195. discuss about one specific program on one specific operating system.
  2196. Since you have bought a legal copy of Stacker, you have the
  2197. documentation of your product; please read it. If you can't find the
  2198. answer in the documentation, please report the problem to the Stac
  2199. customer support.  If you really feel that the net has to know about
  2200. your problem, please post in one of the MSDOS newsgroups, such as
  2201. comp.os.msdos.apps or comp.binaries.ibm.pc.d.
  2202.  
  2203. ------------------------------------------------------------------------------
  2204.  
  2205. Subject: [50] What is this 'tar' compression program?
  2206.  
  2207.  
  2208. tar is not a compression program. It just combines several files
  2209. into one, without compressing them. tar file are often compressed with
  2210. 'compress', resulting in a .tar.Z file. See question 2, file type .tar.Z.
  2211. GNU tar has the capability to (de)compress files as well.
  2212.  
  2213. When you have to archive a lot of very small files, it is often
  2214. preferable to create a single .tar file and compress it, than to
  2215. compress the individual files separately. The compression program can
  2216. thus take advantage of redundancy between separate files.  The
  2217. disadvantage is that you must uncompress the whole .tar file to
  2218. extract any member.
  2219.  
  2220. ------------------------------------------------------------------------------
  2221.  
  2222. Subject: [51] I need a CRC algorithm
  2223.  
  2224.  
  2225. As its name implies (Cyclic Redundancy Check) a crc adds redundancy
  2226. whereas the topic of this group is to remove it. But since this
  2227. question comes up often, here is some code (by Rob Warnock <rpw3@sgi.com>).
  2228.  
  2229. The following C code does CRC-32 in BigEndian/BigEndian byte/bit order.
  2230. That is, the data is sent most significant byte first, and each of the bits
  2231. within a byte is sent most significant bit first, as in FDDI. You will need
  2232. to twiddle with it to do Ethernet CRC, i.e., BigEndian/LittleEndian byte/bit
  2233. order. [Left as an exercise for the reader.]
  2234.  
  2235. The CRCs this code generates agree with the vendor-supplied Verilog models
  2236. of several of the popular FDDI "MAC" chips.
  2237.  
  2238. u_long crc32_table[256];
  2239. /* Initialized first time "crc32()" is called. If you prefer, you can
  2240.  * statically initialize it at compile time. [Another exercise.]
  2241.  */
  2242.  
  2243. u_long crc32(u_char *buf, int len)
  2244. {
  2245.         u_char *p;
  2246.         u_long  crc;
  2247.  
  2248.         if (!crc32_table[1])    /* if not already done, */
  2249.                 init_crc32();   /* build table */
  2250.         crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
  2251.         for (p = buf; len > 0; ++p, --len)
  2252.                 crc = (crc << 8) ^ crc32_table[(crc >> 24) ^ *p];
  2253.         return ~crc;            /* transmit complement, per CRC-32 spec */
  2254. }
  2255.  
  2256. /*
  2257.  * Build auxiliary table for parallel byte-at-a-time CRC-32.
  2258.  */
  2259. #define CRC32_POLY 0x04c11db7     /* AUTODIN II, Ethernet, & FDDI */
  2260.  
  2261. init_crc32()
  2262. {
  2263.         int i, j;
  2264.         u_long c;
  2265.  
  2266.         for (i = 0; i < 256; ++i) {
  2267.                 for (c = i << 24, j = 8; j > 0; --j)
  2268.                         c = c & 0x80000000 ? (c << 1) ^ CRC32_POLY : (c << 1);
  2269.                 crc32_table[i] = c;
  2270.         }
  2271. }
  2272.  
  2273. See also ftp.uni-erlangen.de:/pub/doc/ISO/english/async-HDLC, and the
  2274. source of all archivers, such as the file makecrc.c in the sources of
  2275. zip 1.9 (see item 2).
  2276.  
  2277. ------------------------------------------------------------------------------
  2278.  
  2279. Subject: [52] What about those people who continue to ask frequently asked
  2280.               questions in spite of the frequently asked questions document?
  2281.  
  2282.  
  2283. Just send them a polite mail message, referring them to this document.
  2284. There is no need to flame them on comp.compression.  That would just
  2285. add more noise to this group.  Posted answers that are in the FAQ are
  2286. just as annoying as posted questions that are in the FAQ.
  2287.  
  2288. ------------------------------------------------------------------------------
  2289.  
  2290. Subject: [53] Where are FAQ lists archived?
  2291.  
  2292.  
  2293. Many are crossposted to news.answers.  That newsgroup should have a
  2294. long expiry time at your site; if not, talk to your sysadmin.
  2295.  
  2296. FAQ lists are available by anonymous FTP from rtfm.mit.edu.
  2297. The comp.compression FAQ that you are reading is in directory
  2298.    /pub/usenet/news.answers/compression-faq
  2299.  
  2300. If you don't have FTP access, you can access the archives by mail
  2301. server.  Send an email message to mail-server@rtfm.mit.edu
  2302. containing the commands
  2303.     send usenet/news.answers/compression-faq/part1
  2304.     send usenet/news.answers/compression-faq/part2
  2305.     send usenet/news.answers/compression-faq/part3
  2306. For instructions, send an email message to the same address with the
  2307. words "help" and "index" (no quotes) on separate lines. If you don't
  2308. get a reply, check your return address, or add a line such as
  2309.     path myname@foo.edu
  2310.  
  2311. ------------------------------------------------------------------------------
  2312.  
  2313. Subject: [54] I need specs for graphics formats
  2314.  
  2315.  
  2316. Have a look in directory /pub/graphics.formats on zamenhof.cs.rice.edu.
  2317. It contains descriptions of gif, tiff, fits, etc...
  2318.  
  2319. See also the FAQ list for comp.graphics. See item 53 for an ftp site.
  2320.  
  2321. ------------------------------------------------------------------------------
  2322.  
  2323. Subject: [55] Where can I find Lenna and other images?
  2324.  
  2325.  
  2326. A bunch of standard images (lenna, baboon, cameraman, crowd, moon
  2327. etc..) are on ftp site eedsp.gatech.edu (130.207.226.2) in directory
  2328. /database/images. The images are in 256-level grayshades (256x256
  2329. pixels, 256 "colors").
  2330.  
  2331. The site ipl.rpi.edu (128.113.14.50) has standard images in two
  2332. directories:
  2333.    ipl.rpi.edu:/pub/image/still/usc 
  2334.    ipl.rpi.edu:/pub/image/still/canon
  2335. (The directory /pub/image/sequence has been taken offline because of
  2336. possible copyright problems.)
  2337.  
  2338. In each of those directories are the following directories:
  2339.    bgr     - 24 bit blue, green, red
  2340.    color   - 24 bit red, green, blue
  2341.    gray    - 8 bit grayscale uniform weighted
  2342.    gray601 - 8 bit grayscale CCIR-601 weighted
  2343.  
  2344. And in these directories are the actual images.  
  2345.  
  2346. For example, the popular lena image is in
  2347.    ipl.rpi.edu:/pub/image/still/usc/color/lena  # 24 bit RGB
  2348.    ipl.rpi.edu:/pub/image/still/usc/bgr/lena    # 24 bit BGR
  2349.    ipl.rpi.edu:/pub/image/still/usc/gray/lena   # 8 bit gray
  2350.  
  2351. All of the images are in Sun rasterfile format.  You can use the pbm
  2352. utilities to convert them to whatever format is most convenient.
  2353. [pbm is available in ftp.ee.lbl.gov:/pbmplus*.tar.Z].
  2354. Questions about the ipl archive should be sent to help@ipl.rpi.edu.
  2355.  
  2356. Rodney Peck <rodney@balltown.cma.com> is interested in some method
  2357. of establishing a canonical ftp database of images but does not have
  2358. the resources to provide an ftp site for that database. Send suggestions to
  2359. rodney@balltown.cma.com.
  2360.  
  2361.  
  2362. Beware: the same image often comes in many different forms, at
  2363. different resolutions, etc... The original lenna image is 512 wide,
  2364. 512 high, 8 bits per pel, red, green and blue fields.  Gray-scale
  2365. versions of Lenna have been obtained in two different ways from the
  2366. original:
  2367.  (1) Using the green field as a gray-scale image, and
  2368.  (2) Doing an RGB->YUV transformation and saving the Y component.
  2369. Method (1) makes it easier to compare different people's results since
  2370. everyone's version should be the same using that method.  Method (2)
  2371. produces a more correct image.
  2372.  
  2373. For the curious: 'lena' or 'lenna' is a digitized Playboy centerfold,
  2374. from November 1972. (Lenna is the spelling in Playboy, Lena is the
  2375. Swedish spelling of the name.) Lena Soderberg (ne Sjooblom) was last
  2376. reported living in her native Sweden, happily married with three kids
  2377. and a job with the state liquor monopoly.  In 1988, she was
  2378. interviewed by some Swedish computer related publication, and she was
  2379. pleasantly amused by what had happened to her picture.  That was the
  2380. first she knew of the use of that picture in the computer business.
  2381.  
  2382. The editorial in the January 1992 issue of Optical Engineering (v. 31
  2383. no. 1) details how Playboy has finally caught on to the fact that
  2384. their copyright on Lenna Sjooblom's photo is being widely infringed.
  2385. It sounds as if you will have to get permission from Playboy to
  2386. publish it in the future.
  2387.  
  2388.  
  2389. Note on the CCITT test images, by Robert Estes <estes@eecs.ucdavis.edu>:
  2390.  
  2391. The ccitt files are in ipl.rpi.edu:/image-archive/bitmap/ccitt
  2392. (128.113.14.50). They are named ccitt-n.ras.Z where n goes from 1 to 8.
  2393. Each file has an accompanying doc file called ccitt-n.ras.doc which
  2394. describes the image file. Here's the doc file for ccitt-1.ras:
  2395.  
  2396. Name ccitt-1.ras
  2397. Size 1728 x 2376 x 1
  2398. Type 1 bit standard format sun rasterfile 
  2399. Keywords binary standard image 1 bit fax
  2400. Description
  2401. One of eight images from the standard binary CCITT test image set.
  2402.  
  2403. This set is commonly used to compare binary image compression
  2404. techniques. The images are are 1728x2376 pixels.
  2405.  
  2406. ------------------------------------------------------------------------------
  2407.  
  2408. Subject: [56] I am looking for a message digest algorithm
  2409.  
  2410.  
  2411. Look on the ftp site rsa.com, in directory /pub. MD4 and MD5 are there.
  2412. This question would be more appropriate on sci.crypt.
  2413.  
  2414.  
  2415.  
  2416.           End of part 1 of the comp.compression faq.
  2417.